Skip to content

Commit

Permalink
tinyint等类型bool->int8
Browse files Browse the repository at this point in the history
tinyint等类型应当转换为int8,bool类型会涉及false零值导致差异更新数据时增加复杂度
  • Loading branch information
evildao authored Jan 17, 2020
1 parent 726f16d commit 7f8f3a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/view/cnf/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7f8f3a2

Please sign in to comment.