-
Hi! The question is why do I get nil-pointer dereference when I'm binding the struct to the raw query? type SomeStruct struct {
BindResult int `boil:"some_name"`
}
var ss SomeStruct
err := queries.Raw(`select 1 as "some_name"`).Bind(ctx, db, &ss) And result is
|
Beta Was this translation helpful? Give feedback.
Answered by
qerdcv
Aug 10, 2022
Replies: 2 comments
-
Solved, for some reasons, it repeated only with testcontainers, and don't repeated with sql.DB instance |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
qerdcv
-
But I not fully understand what is the problem, it only raises panic, and not so obvious what caused the problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved, for some reasons, it repeated only with testcontainers, and don't repeated with sql.DB instance