Closed ghost closed 3 years ago
oh, I used pointers incorrectly. the fix was to use i Instance
still seems like an odd error message, tbh
Hi, @dev-kittens. Thanks for opening this issue. Yes, you are passing a pointer to a pointer. You need to remove the extra pointer.
BTW, I can see that you use sql
struct tag, JFYI scany supports only db
struct tag. Mapping won't work if you use sql
word.
scany supports only
db
struct tag ohh, this fixes some other issues i was having. thank you 👍
i have this code:
i get the error:
scany: to scan into a primitive type, columns number must be exactly 1, got: 4
what am I doing wrong here? this error doesn't seem correct (a struct is not a primitive type), and i'm pretty sure i'm using similar code (just with a different struct) elsewhere