convert distinct to groupby when not supported
This commit is contained in:
1 parent
6d79d3352c
commit
c9a7b2394d
2 files changed
+3
-1
No files matched your search
@@ -1457,6 +1457,8 @@ class BaseAdapter(ConnectionPool):
|
||||
having = args_get('having', False)
|
||||
limitby = args_get('limitby', False)
|
||||
for_update = args_get('for_update', False)
|
||||
if not distinct in (True,False) and not groupby:
|
||||
distinct, groupby = False, distinct
|
||||
if self.can_select_for_update is False and for_update is True:
|
||||
raise SyntaxError, 'invalid select attribute: for_update'
|
||||
if distinct is True:
|
||||
|
||||
Reference in new issue
Block a user