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 <rajenderre...@gmail.com <javascript:>> wrote: > > > Initially the program giving err driver: bad connection for rows.Err > > (). So I added panic with that error to get the stack trace. > > That's very unfortunate as it works right against the debugging by > leading whoever reads your problem statement down the wrong road. > > Please don't do that next time: state what's your original problem, > not what you think of it.
OK. I was trying get the stack trace of the error path and completely messed up. > > for rows.Next() { > > //stats calculation > > } > > if err := rows.Err(); err != nil { > > panic(err) *// this is line 498* > > } > > rows.Close() > > > > How can find out the reason for that error? Do I need to search in > > the library github.com/alexbrainman/odbc > [...] > > Well, instead of asking this question you could just `git grep` the > local clone (what `go get` did for you) of that repository: > > Thank you very much for your help. Yes, I did dig through the library after posting and ended up having same findings. It would have helped if there was away to get stack trace of the error. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.