fixed ducktyping problem, thanks Jonathan

This commit is contained in:
mdipierro
2012-09-17 07:13:26 -05:00
parent 68e8cd64f1
commit 1b9e7daca5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-09-17 07:10:46) stable
Version 2.0.9 (2012-09-17 07:13:22) stable
+1 -1
View File
@@ -1457,7 +1457,7 @@ 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:
if not distinct is True and not distinct is 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'