Re: [go-nuts] Re: golang sql driver: bad connection

2016-07-08 Thread Raj
On Friday, July 8, 2016 at 11:16:50 PM UTC+5:30, Konstantin Khomoutov wrote: > > On Fri, 8 Jul 2016 08:15:27 -0700 (PDT) > Raj wrote: > > > Initially the program giving err driver: bad connection for rows.Err > > (). So I added panic with that error to get the stack

Re: [go-nuts] Re: golang sql driver: bad connection

2016-07-08 Thread Raj
Hi Ian, Initially the program giving err driver: bad connection for rows.Err(). So I added panic with that error to get the stack trace. for rows.Next() { //stats calculation } if err := rows.Err(); err != nil { panic(err) *// this is line 498* } rows.Close() How can find out the