Closed luca-moser closed 8 years ago
This reminds me the problem from 2013 (http://grokbase.com/t/gg/golang-nuts/134883hv3h/go-nuts-io-closer-and-closing-previously-closed-object)
I added:
if s.my == nil {
panic("godrv: stmt closed twice")
}
to stmt.Close method.
Try last commit and check panic message.
Sorry, I already switched to another driver. My problem was gone anyways after I removed an inner query.
I am facing a problem with this package with concurrent queries. I am using this driver with the
database/sql
package with Go 1.6.2. My code correctly closes*db.Stmt
and*db.Rows
objects after each query.My pool settings are following:
When running multiple queries, the driver simply crashes with the error:
I've checked wether any
*db.Stmt
or*db.Rows
objects are nil in my code for whatever reason but they are not. While you provide a separate package for thread-safety, thegodrv
package uses thenative
package.