mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 19:20:14 +03:00
fix fields
db_string doesn't use \\N, only null
This commit is contained in:
parent
595f2023e3
commit
baca881add
|
@ -474,7 +474,7 @@ class NullableField(Field):
|
||||||
|
|
||||||
def to_db_string(self, value, quote=True):
|
def to_db_string(self, value, quote=True):
|
||||||
if value in self._null_values:
|
if value in self._null_values:
|
||||||
return '\\N'
|
return 'null'
|
||||||
return self.inner_field.to_db_string(value, quote=quote)
|
return self.inner_field.to_db_string(value, quote=quote)
|
||||||
|
|
||||||
def get_sql(self, with_default_expression=True):
|
def get_sql(self, with_default_expression=True):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user