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()
|
||||
if isinstance(fieldtype, SQLCustomType):
|
||||
value = fieldtype.encoder(obj)
|
||||
if fieldtype.native in ('string','text'):
|
||||
if fieldtype.type in ('string','text'):
|
||||
return self.adapt(value)
|
||||
return value
|
||||
if isinstance(obj, (Expression, Field)):
|
||||
|
||||
Reference in New Issue
Block a user