Skip to content

Commit

Permalink
Try fix handling wrong dates (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakwc authored Jan 30, 2025
1 parent 9696a08 commit 922021f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql_ch_replicator/clickhouse_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def insert(self, table_name, records, table_structure: TableStructure = None):
try:
e.timestamp()
except ValueError:
e = 0
e = datetime.datetime(1970, 1, 1)
if table_structure is not None:
field: TableField = table_structure.fields[i]
is_datetime = (
Expand Down

0 comments on commit 922021f

Please sign in to comment.