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
I'm no longer able to scan a model with a has-many relation included when using PK types that implement driver.Valuer. I'm using https://github.com/oklog/ulid for all PKs in my model.
This regression was introduced by #1080 in v1.2.7 and seen previously in #779. cc @thecampagnards@Tiscs
The changes in #1080 replaced the variable itself with the value returned by Value().
In this specific case, the variable itself is [16]byte, an array and can be used to compute a hash.
However, Value() returns a []byte, a slice, which cannot be used to compute a hash.
Thank you very much for your feedback. I will address this issue as soon as possible.
I'm no longer able to scan a model with a
has-many
relation included when using PK types that implementdriver.Valuer
. I'm using https://github.com/oklog/ulid for all PKs in my model.This regression was introduced by #1080 in
v1.2.7
and seen previously in #779. cc @thecampagnards @TiscsReproducible with (DB connection required):
Alternatively reproduce with a unit test:
The text was updated successfully, but these errors were encountered: