You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DefaultParameterConverter just returns nil so we lost the type information. If the value implements driver.Valuer it should be preserved when it has a nil value so makeParam can use it.
func (s*Stmt) makeParam(val driver.Value) (resparam, errerror) {
ifval==nil {
res.ti.TypeId=typeNullres.buffer=nilres.ti.Size=0return
}
...funcmakeDecl(titypeInfo) string {
switchti.TypeId {
casetypeNull:
// maybe we should use something else here// this is tested in TestNullreturn"nvarchar(1)"
makeParam should
The text was updated successfully, but these errors were encountered:
This code path in makeParam is being hit because CheckNamedValue sends the
sql.Nullable*
type instances to convertInputParameterThe DefaultParameterConverter just returns
nil
so we lost the type information. If the value implementsdriver.Valuer
it should be preserved when it has a nil value somakeParam
can use it.makeParam should
The text was updated successfully, but these errors were encountered: