From 2444b5c5873e2a6b422a841da6645ab3be1b3313 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 9 Jun 2013 16:57:13 -0500 Subject: [PATCH] CAST in sql, needs more work --- VERSION | 2 +- gluon/dal.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 289cf9f3..12a4b69a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.5.1-stable+timestamp.2013.06.09.16.43.01 +Version 2.5.1-stable+timestamp.2013.06.09.16.56.30 diff --git a/gluon/dal.py b/gluon/dal.py index 7bac15de..cd417ebf 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1375,8 +1375,6 @@ class BaseAdapter(ConnectionPool): out = '(%s)' % op else: out = op() - if field_type == 'string': - out = 'CAST(%s AS %s)' % (out, self.types['text']) return out elif field_type: return str(self.represent(expression,field_type))