From 1b9e7daca52a62daff3cba8ef25db1e5d2ab369d Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 17 Sep 2012 07:13:26 -0500 Subject: [PATCH] fixed ducktyping problem, thanks Jonathan --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 450a62f2..f7be1024 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-17 07:10:46) stable +Version 2.0.9 (2012-09-17 07:13:22) stable diff --git a/gluon/dal.py b/gluon/dal.py index 754e800c..54ec7ef2 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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'