Better handling of invalid type input in RDBMS drivers
This commit is contained in:
parent
185349d17a
commit
9ab496b3d4
@ -72,6 +72,10 @@ func TypeWrap(dt dal.Type) Type {
|
|||||||
return &TypeUUID{c}
|
return &TypeUUID{c}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if dt == nil {
|
||||||
|
panic(fmt.Sprintf("attribute type not set (nil)"))
|
||||||
|
}
|
||||||
|
|
||||||
panic(fmt.Sprintf("type implementation missing: %s", dt.Type()))
|
panic(fmt.Sprintf("type implementation missing: %s", dt.Type()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user