Merge branch 'master' into dump-infer-from-type

This commit is contained in:
Andrew Thornton 2021-04-08 18:20:33 +08:00
commit 3d4da2bea2
1 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,8 @@ func (db *mysql) GetColumns(queryer core.Queryer, ctx context.Context, tableName
cts := strings.Split(colType, "(")
colName := cts[0]
// Remove the /* mariadb-5.3 */ suffix from coltypes
colName = strings.TrimSuffix(colName, "/* mariadb-5.3 */")
colType = strings.ToUpper(colName)
var len1, len2 int
if len(cts) == 2 {