mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-13 03:10:03 -05:00
/{go,integration-tests}: fix parse int with leading zero issue
This commit is contained in:
@@ -224,6 +224,12 @@ func leastPermissiveNumericType(strVal string, floatThreshold float64) (ti typei
|
||||
if err != nil {
|
||||
return typeinfo.UnknownType
|
||||
}
|
||||
|
||||
// handle leading zero case
|
||||
if strVal[0] == '0' {
|
||||
return typeinfo.StringDefaultType
|
||||
}
|
||||
|
||||
if ui <= math.MaxUint32 {
|
||||
return typeinfo.Uint32Type
|
||||
} else {
|
||||
|
||||
@@ -108,7 +108,6 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "import-create-tables: import data from csv and create the table different types" {
|
||||
skip "unable to cast to uint64, parse error"
|
||||
run dolt table import -c --pk=pk test people.csv
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "Import completed successfully." ]] || false
|
||||
|
||||
Reference in New Issue
Block a user