CAST in sql, needs more work

This commit is contained in:
mdipierro
2013-06-09 16:57:13 -05:00
parent bf3770dc98
commit 2444b5c587
2 changed files with 1 additions and 3 deletions

View File

@@ -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

View File

@@ -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))