Skip to content

Commit 7db4a8f

Browse files
authored
Try fix handling wrong dates (bakwc#99)
1 parent 3cdd958 commit 7db4a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql_ch_replicator/clickhouse_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def insert(self, table_name, records, table_structure: TableStructure = None):
192192
try:
193193
e.timestamp()
194194
except ValueError:
195-
e = 0
195+
e = datetime.datetime(1970, 1, 1)
196196
if table_structure is not None:
197197
field: TableField = table_structure.fields[i]
198198
is_datetime = (

0 commit comments

Comments
 (0)