Skip to content

Commit 2f808af

Browse files
committed
Fixed tests
1 parent 447afa5 commit 2f808af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mysql_ch_replicator/converter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ def convert_timestamp_to_datetime64(input_str):
181181
class MysqlToClickhouseConverter:
182182
def __init__(self, db_replicator: 'DbReplicator' = None):
183183
self.db_replicator = db_replicator
184-
self.types_mapping = db_replicator.config.types_mapping
184+
self.types_mapping = {}
185+
if self.db_replicator is not None:
186+
self.types_mapping = db_replicator.config.types_mapping
185187

186188
def convert_type(self, mysql_type, parameters):
187189
is_unsigned = 'unsigned' in parameters.lower()

0 commit comments

Comments
 (0)