@@ -264,30 +264,30 @@ def map_type(self, mysql_type, nullable=False):
264
264
ch_type = 'String'
265
265
elif mysql_type .startswith ('TINYINT' ):
266
266
ch_type = 'UInt8' if mysql_type .endswith ('UNSIGNED' ) else 'Int8'
267
- elif mysql_type .startswith ('BOOL ' ) or mysql_type .startswith ('BOOLEAN ' ):
267
+ elif mysql_type .startswith ('BOOLEAN ' ) or mysql_type .startswith ('BOOL ' ):
268
268
ch_type = 'UInt8'
269
269
elif mysql_type .startswith ('SMALLINT' ):
270
270
ch_type = 'UInt16' if mysql_type .endswith ('UNSIGNED' ) else 'Int16'
271
271
elif mysql_type .startswith ('MEDIUMINT' ):
272
272
ch_type = 'UInt32' if mysql_type .endswith ('UNSIGNED' ) else 'Int32'
273
- elif mysql_type .startswith ('INT ' ) or mysql_type .startswith ('INTEGER ' ):
273
+ elif mysql_type .startswith ('INTEGER ' ) or mysql_type .startswith ('INT ' ):
274
274
ch_type = 'UInt32' if mysql_type .endswith ('UNSIGNED' ) else 'Int32'
275
275
elif mysql_type .startswith ('BIGINT' ):
276
276
ch_type = 'UInt64' if mysql_type .endswith ('UNSIGNED' ) else 'Int64'
277
277
elif mysql_type .startswith ('SERIAL' ):
278
278
ch_type = 'UInt64'
279
- elif mysql_type .startswith ('DEC ' ) or mysql_type .startswith ('DECIMAL ' ) or mysql_type .startswith ('FIXED' ) or mysql_type .startswith ('NUMERIC' ):
279
+ elif mysql_type .startswith ('DECIMAL ' ) or mysql_type .startswith ('DEC ' ) or mysql_type .startswith ('FIXED' ) or mysql_type .startswith ('NUMERIC' ):
280
280
ch_type = 'String'
281
281
elif mysql_type .startswith ('FLOAT' ):
282
282
ch_type = 'Float32'
283
283
elif mysql_type .startswith ('DOUBLE' ) or mysql_type .startswith ('REAL' ):
284
284
ch_type = 'Float64'
285
285
286
286
# Date and Time Types
287
- elif mysql_type .startswith ('DATE' ):
288
- ch_type = 'Date'
289
287
elif mysql_type .startswith ('DATETIME' ):
290
288
ch_type = 'DateTime'
289
+ elif mysql_type .startswith ('DATE' ):
290
+ ch_type = 'Date'
291
291
elif mysql_type .startswith ('TIMESTAMP' ):
292
292
ch_type = 'DateTime'
293
293
elif mysql_type .startswith ('TIME' ):
0 commit comments