tinyint等类型bool->int8
tinyint等类型应当转换为int8,bool类型会涉及false零值导致差异更新数据时增加复杂度
This commit is contained in:
@@ -16,9 +16,9 @@ var TypeMysqlDicMp = map[string]string{
|
||||
"char": "string",
|
||||
"date": "time.Time",
|
||||
"datetime": "time.Time",
|
||||
"bit(1)": "bool",
|
||||
"tinyint(1)": "bool",
|
||||
"tinyint(1) unsigned": "bool",
|
||||
"bit(1)": "int8",
|
||||
"tinyint(1)": "int8",
|
||||
"tinyint(1) unsigned": "int8",
|
||||
"json": "string",
|
||||
"text": "string",
|
||||
"timestamp": "time.Time",
|
||||
|
||||
Reference in New Issue
Block a user