CAST in sql, needs more work
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -1375,8 +1375,6 @@ class BaseAdapter(ConnectionPool):
|
|||||||
out = '(%s)' % op
|
out = '(%s)' % op
|
||||||
else:
|
else:
|
||||||
out = op()
|
out = op()
|
||||||
if field_type == 'string':
|
|
||||||
out = 'CAST(%s AS %s)' % (out, self.types['text'])
|
|
||||||
return out
|
return out
|
||||||
elif field_type:
|
elif field_type:
|
||||||
return str(self.represent(expression,field_type))
|
return str(self.represent(expression,field_type))
|
||||||
|
|||||||
Reference in New Issue
Block a user