We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447afa5 commit 2f808afCopy full SHA for 2f808af
mysql_ch_replicator/converter.py
@@ -181,7 +181,9 @@ def convert_timestamp_to_datetime64(input_str):
181
class MysqlToClickhouseConverter:
182
def __init__(self, db_replicator: 'DbReplicator' = None):
183
self.db_replicator = db_replicator
184
- self.types_mapping = db_replicator.config.types_mapping
+ self.types_mapping = {}
185
+ if self.db_replicator is not None:
186
+ self.types_mapping = db_replicator.config.types_mapping
187
188
def convert_type(self, mysql_type, parameters):
189
is_unsigned = 'unsigned' in parameters.lower()
0 commit comments