Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

generic-pool of mysql-libmysqlclient #13

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

generic-pool of mysql-libmysqlclient #13

buxit opened this issue Oct 16, 2012 · 1 comment

Comments

@buxit
Copy link

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?

@olivierphi
Copy link
Owner

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants