3
0

Better handling of invalid type input in RDBMS drivers

This commit is contained in:
Denis Arh 2022-10-06 12:48:40 +02:00 committed by Tomaž Jerman
parent 185349d17a
commit 9ab496b3d4

View File

@ -72,6 +72,10 @@ func TypeWrap(dt dal.Type) Type {
return &TypeUUID{c}
}
if dt == nil {
panic(fmt.Sprintf("attribute type not set (nil)"))
}
panic(fmt.Sprintf("type implementation missing: %s", dt.Type()))
}