mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 19:20:14 +03:00
Merge baca881add
into 45a9200ff6
This commit is contained in:
commit
74669a5059
|
@ -630,7 +630,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, db=None):
|
def get_sql(self, with_default_expression=True, db=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user