From 2d051d7ff4618f5693cb7b4d55cfeb431fa6758f Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Mon, 28 May 2012 16:19:29 -0500 Subject: [PATCH] issue 823, thanks mweissen --- VERSION | 2 +- gluon/dal.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 5bcc32f5..5a2e7c50 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-05-28 15:54:06) dev +Version 2.00.0 (2012-05-28 16:19:00) dev diff --git a/gluon/dal.py b/gluon/dal.py index 4e9fa214..763cc39b 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1137,6 +1137,8 @@ class BaseAdapter(ConnectionPool): return str(self.represent(expression,field_type)) elif isinstance(expression,(list,tuple)): return ','.join(self.represent(item,field_type) for item in expression) + elif isinstance(expression, bool): + return '1' if expression else '0' else: return str(expression)