Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

generic-pool of mysql-libmysqlclient #13

Open
buxit opened this Issue Oct 16, 2012 · 1 comment

Comments

Projects
None yet
2 participants

buxit commented Oct 16, 2012

hi!

I'm trying to use node-dbi with generic-pool. It works well with adaptor mysql.
With mysql-libmysqlclient i get:

ERROR pool dbi - release called twice for the same resource: Error
    at Object.exports.Pool.me.release (.../node_modules/generic-pool/lib/generic-pool.js:317:61)
    at exports.Pool.diff (.../node_modules/generic-pool/lib/generic-pool.js:263:14)
    at poolModule.Pool.create (.../dbi-pool.js:18:7)
    at DBWrapper._onAdapterConnection (.../node_modules/node-dbi/lib/dbWrapper.js:536:44)
    at Adapter.EventEmitter.emit (events.js:93:17)
    at Adapter.DBAdapterAbstract._onConnectionInitialization (.../node_modules/node-dbi/lib/dbAdapterAbstract.js:239:8)

Apparently the resources returned by two subsequent new DBWrapper() are the same for mysql-libmysqlclient?
Am I doing something wrong?

Owner

DrBenton commented Jan 13, 2014

@buxit Well, I've never worked with this "generic-pool" feature. I don't have any idea about how we could fix this.

Furthermore,the "mysql-libmysqlclient" seems to be broken at the moment for Node.js v 0.10 - I had to disable its unit tests for the moment... :-/ (@see Sannis/node-mysql-libmysqlclient#181 or error messages after "npm install" on https://travis-ci.org/DrBenton/Node-DBI/jobs/16871572)

If you know how to solve this problem, let me now! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment