fix colType miss
This commit is contained in:
parent
f63b42ff9b
commit
2e511b5027
|
@ -394,6 +394,11 @@ func (db *mysql) GetColumns(ctx context.Context, tableName string) ([]string, ma
|
||||||
if colType == "DOUBLE UNSIGNED" {
|
if colType == "DOUBLE UNSIGNED" {
|
||||||
colType = "DOUBLE"
|
colType = "DOUBLE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.Contains(colType, "INT UNSIGNED") {
|
||||||
|
colType = strings.TrimRight(colType, " UNSIGNED")
|
||||||
|
}
|
||||||
|
|
||||||
col.Length = len1
|
col.Length = len1
|
||||||
col.Length2 = len2
|
col.Length2 = len2
|
||||||
if _, ok := schemas.SqlTypes[colType]; ok {
|
if _, ok := schemas.SqlTypes[colType]; ok {
|
||||||
|
|
Loading…
Reference in New Issue