We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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" }
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
The text was updated successfully, but these errors were encountered:
will make test & PR about it soon
Sorry, something went wrong.
gocraft#248 fix Panic on nil pointer to driver.Valuer interface
afbb476
My bad, I made a PR before checking here and I realise @titanproger has already addressed the same issue.
Just wanted to report we're having the same problem with *uuid.UUID, indeed.
*uuid.UUID
Thanks.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: