"auto", doesn't matter if there's a default here
'type': coltype,
'nullable': not bool(row['null_flag']),
'default': defvalue,
- 'autoincrement': defvalue is None
+ 'autoincrement': 'auto',
}
if orig_colname.lower() == orig_colname:
'type': coltype,
'nullable': nullable,
'default': default,
- 'autoincrement': default is None
+ 'autoincrement': 'auto',
}
if orig_colname.lower() == orig_colname:
cdict['quote'] = True
'type': coltype,
'nullable': nullable,
'default': default,
- 'autoincrement': 'auto' if default is None else False,
+ 'autoincrement': 'auto',
'primary_key': primary_key,
}