[go-nuts] Re: First column in sql rows.Scan is always zero

2020-06-10 Thread Tamás Gulácsi
2020. június 9., kedd 1:03:14 UTC+2 időpontban Saied Seghatoleslami a következőt írta: > > I am scanning database tables into a structure explicitly (with > &struct.field) that works just fine (working path below). > > But my tables have different columns, so I am working to generalize the > A

[go-nuts] Re: First column in sql rows.Scan is always zero

2020-06-10 Thread Saied Seghatoleslami
Thank you very much for your help. Following your suggestions and more experimentation, the problem ended up being that I was asserting int, string and bool types rather than *int, *string and *bool types. I should have gotten a not ok back, but apparently not. I will have to figure out why.