mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-07 08:50:34 -06:00
Merge pull request #1411 from alrs/doltcore-typinfo-errs
libraries/doltcore/schema/typeinfo: fix dropped errors
This commit is contained in:
@@ -138,6 +138,7 @@ func testTypeInfoConvertRoundTrip(t *testing.T, tiArrays [][]TypeInfo, vaArrays
|
||||
require.Equal(t, uint64(1), n)
|
||||
|
||||
readVal, err := ti.ReadFrom(nbf, reader)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, readVal, vInterface)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -57,6 +57,10 @@ func CreateVarStringTypeFromParams(params map[string]string) (TypeInfo, error) {
|
||||
}
|
||||
if maxLengthStr, ok := params[varStringTypeParam_Length]; ok {
|
||||
length, err = strconv.ParseInt(maxLengthStr, 10, 64)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
} else {
|
||||
return nil, fmt.Errorf(`create varstring type info is missing param "%v"`, varStringTypeParam_Length)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user