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
Preferences struct is consist of a few string, int64, *string and bool.
Let me give you a better view of the issue. I can perform ScanAliased(&user) for select ... from users or ScanAliased(&preferences) for select ... from preferences without any issue.
But when I do ScanAliased(&preferences) for select user...., preferences.... from users left join preferences... I get that error. I guess this is because it skips all the user values with &sql.RawBytes{} to reach preferences but can't skip mysql datatime with it for UpdatedAt. It works ok when I remove UpdatedAt from User struct. I can prepare a test for this if you want. Thanks!
When I perform ScanAliased(&preferences) after ScanAliased(&user) I get this error right after ScanAliased(&preferences) performed:
sql: Scan error on column index 11: unsupported driver -> Scan pair: time.Time -> *sql.RawBytes
I've quickly changed this line as v = &v to avoid the issue but I'm not sure this is the correct way
The text was updated successfully, but these errors were encountered: