issue 844 (SQLCustomType and unicode parsing), thanks admin
This commit is contained in:
1 parent
ef40c760fa
commit
d7b8c3aaff
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1583,7 +1583,7 @@ class BaseAdapter(ConnectionPool):
|
||||
pass
|
||||
if isinstance(value, unicode):
|
||||
value = value.encode('utf-8')
|
||||
elif isinstance(field_type, SQLCustomType):
|
||||
if isinstance(field_type, SQLCustomType):
|
||||
value = field_type.decoder(value)
|
||||
if not isinstance(field_type, str) or value is None:
|
||||
return value
|
||||
|
||||
Reference in new issue
Block a user