From 96ebfe0613c872100e5f927dfd05d25a03832eb6 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Fri, 28 Jun 2024 15:29:18 -0700 Subject: [PATCH] Fix conversion (#426) --- lib/mysql/schema/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql/schema/schema.go b/lib/mysql/schema/schema.go index f5b72176..12ccc68e 100644 --- a/lib/mysql/schema/schema.go +++ b/lib/mysql/schema/schema.go @@ -168,7 +168,7 @@ func parseColumnDataType(originalS string) (DataType, *Opts, error) { return -1, nil, fmt.Errorf("failed to parse precision value %q: %w", s, err) } - scale, err := strconv.Atoi(parts[1]) + scale, err := strconv.ParseUint(parts[1], 10, 16) if err != nil { return -1, nil, fmt.Errorf("failed to parse scale value %q: %w", s, err) }