panic when insert or update nil poiter to type wich implements Valuer interface
for example
type record struct {
SomeRelationUuid *uuid.uuid db:"some_relation_uuid"
}
the problem in vendor/github.com/gocraft/dbr/v2/interpolate.go encodePlaceholder
if valuer, ok := value.(driver.Valuer); ok
this code checks is interface implements Valuer - but not check is interface has valid value
panic when insert or update nil poiter to type wich implements Valuer interface
for example
type record struct {
SomeRelationUuid *uuid.uuid
db:"some_relation_uuid"}
the problem in vendor/github.com/gocraft/dbr/v2/interpolate.go encodePlaceholder
if valuer, ok := value.(driver.Valuer); okthis code checks is interface implements Valuer - but not check is interface has valid value