Fix NULL values with SQLCustomType
This commit is contained in:
@@ -1323,7 +1323,7 @@ class BaseAdapter(ConnectionPool):
|
||||
value = fieldtype.encoder(obj)
|
||||
if fieldtype.type in ('string','text', 'json'):
|
||||
return self.adapt(value)
|
||||
return value
|
||||
return value or 'NULL'
|
||||
if isinstance(obj, (Expression, Field)):
|
||||
return str(obj)
|
||||
if field_is_type('list:'):
|
||||
|
||||
Reference in New Issue
Block a user