another SQLCustomType improvement, Alexander is right
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-06-05 18:18:48) dev
|
Version 2.00.0 (2012-06-05 20:02:32) dev
|
||||||
|
|||||||
+1
-1
@@ -1493,7 +1493,7 @@ class BaseAdapter(ConnectionPool):
|
|||||||
obj = obj()
|
obj = obj()
|
||||||
if isinstance(fieldtype, SQLCustomType):
|
if isinstance(fieldtype, SQLCustomType):
|
||||||
value = fieldtype.encoder(obj)
|
value = fieldtype.encoder(obj)
|
||||||
if fieldtype.native in ('string','text'):
|
if fieldtype.type in ('string','text'):
|
||||||
return self.adapt(value)
|
return self.adapt(value)
|
||||||
return value
|
return value
|
||||||
if isinstance(obj, (Expression, Field)):
|
if isinstance(obj, (Expression, Field)):
|
||||||
|
|||||||
Reference in New Issue
Block a user