mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-29 04:03:44 +03:00
blank datetime fix beauty
This commit is contained in:
parent
e5222ffcb0
commit
b2a5482a65
|
@ -137,7 +137,7 @@ class DateTimeField(Field):
|
||||||
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=True):
|
||||||
return escape('%010d' % (timegm(value.utctimetuple())), quote)
|
return escape('%010d' % timegm(value.utctimetuple()), quote)
|
||||||
|
|
||||||
|
|
||||||
class BaseIntField(Field):
|
class BaseIntField(Field):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user