issue 844 (SQLCustomType and unicode parsing), thanks admin

This commit is contained in:
Massimo Di Pierro
2012-06-13 20:02:13 -05:00
parent e5e1837ce8
commit 0209b24bcf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-06-13 17:14:50) dev
Version 2.00.0 (2012-06-13 20:02:08) dev
+1 -1
View File
@@ -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