mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-11 03:46:34 +03:00
Merge branch 'vv-p-add-timezone-breaker' into develop
This commit is contained in:
commit
3cd3e1ec83
|
@ -96,8 +96,9 @@ class Database(object):
|
|||
elif autocreate:
|
||||
self.db_exists = False
|
||||
self.create_database()
|
||||
self.server_timezone = self._get_server_timezone()
|
||||
self.server_version = self._get_server_version()
|
||||
# Versions 1.1.53981 and below don't have timezone function
|
||||
self.server_timezone = self._get_server_timezone() if self.server_version > (1, 1, 53981) else pytz.utc
|
||||
|
||||
def create_database(self):
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue
Block a user