Skip to content

Commit 722a53b

Browse files
committed
Quick fix to prioritize bigint to avoid bigint being mapped to Int32
1 parent 0bfc2e2 commit 722a53b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mysql_ch_replicator/converter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ def convert_type(self, mysql_type, parameters):
123123
return 'Float32'
124124
if 'double' in mysql_type:
125125
return 'Float64'
126-
if 'integer' in mysql_type or 'int(' in mysql_type:
127-
if is_unsigned:
128-
return 'UInt32'
129-
return 'Int32'
130126
if 'bigint' in mysql_type:
131127
if is_unsigned:
132128
return 'UInt64'
133129
return 'Int64'
130+
if 'integer' in mysql_type or 'int(' in mysql_type:
131+
if is_unsigned:
132+
return 'UInt32'
133+
return 'Int32'
134134
if 'real' in mysql_type:
135135
return 'Float64'
136136
if mysql_type.startswith('time'):

0 commit comments

Comments
 (0)