modify sql model

master
jager 10 months ago
parent 4e4ae034f1
commit 87f7ba5038

@ -24,11 +24,11 @@ var commonMysqlDataTypeMapInt = map[int]string{
parser.MediumInt: "int32",
parser.Int: "int",
parser.MiddleInt: "int32",
parser.Int1: "int",
parser.Int2: "int",
parser.Int3: "int",
parser.Int4: "int",
parser.Int8: "int8",
parser.Int1: "int8",
parser.Int2: "int16",
parser.Int3: "int32",
parser.Int4: "int32",
parser.Int8: "int64",
parser.Integer: "int",
parser.BigInt: "int64",
parser.Float: "float64",
@ -84,13 +84,13 @@ var commonMysqlDataTypeMapString = map[string]string{
"smallint": "int16",
"mediumint": "int32",
"int": "int",
"int1": "int",
"int2": "int",
"int1": "int8",
"int2": "int16",
"_int2": "pq.Int64Array",
"int3": "int",
"int4": "int",
"int3": "int32",
"int4": "int32",
"_int4": "pq.Int64Array",
"int8": "int8",
"int8": "int64",
"_int8": "pq.Int64Array",
"integer": "int",
"_integer": "pq.Int64Array",

Loading…
Cancel
Save