Re: [go-nuts] sql: please, guys, tell me I am doing it wrong.

2017-04-03 Thread ojucie
Maybe surprisingly I can't use ellipsis at the call site because Scan expects pointers to values, not the values themselves. Using v... Scan returned an error: sql: Scan error on column index 0: destination not a pointer So, I changed v to contain pointer to values. Then it worked. v = mak

Re: [go-nuts] sql: please, guys, tell me I am doing it wrong.

2017-04-03 Thread Ayan George
On 04/03/2017 08:50 AM, oju...@gmail.com wrote: > I built a little command line utility for running arbitrary sql queries. > You use it like: > > runQuery "select * from myTable" > > > Previously I have build similar tools in C and Java and I don't remember > needing to code a hack to hand