mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 11:10:11 +03:00
Update fields.py
Timestamps should not be quoted.
This commit is contained in:
parent
928e41b82c
commit
6507b97f5d
|
@ -187,7 +187,7 @@ class DateTimeField(Field):
|
||||||
return dt.astimezone(pytz.utc)
|
return dt.astimezone(pytz.utc)
|
||||||
raise ValueError('Invalid value for %s - %r' % (self.__class__.__name__, value))
|
raise ValueError('Invalid value for %s - %r' % (self.__class__.__name__, value))
|
||||||
|
|
||||||
def to_db_string(self, value, quote=True):
|
def to_db_string(self, value, quote=False):
|
||||||
return escape('%010d' % timegm(value.utctimetuple()), quote)
|
return escape('%010d' % timegm(value.utctimetuple()), quote)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user