-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the callback in funtion createMysqlPool of dao-pool.js is not a function??? #47
Comments
no person answer me??? |
I met the same problem... |
I face the same issue and from the looks of it i suspect this commit. (After reverting the change and downgrading to generic-pool 1.0.9 it is back to normal again.) Also there seem to be a pull request aiming to fix this. (just tested it, and it solves the problem.) |
没有人解决这个问题吗,官方的demo居然有bug没有人去修复。。。提交了pr也不理。。。 |
我也遇到同样的问题。 |
1 similar comment
我也遇到同样的问题。 |
TypeError: callback is not a function
at Object.create (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\mysql\dao-pool.js:29:9)
at Pool._createResource (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:279:42)
at Pool._dispense (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:210:12)
at Pool.acquire (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\generic-pool\lib\Pool.js:406:10)
at Object.NND.query (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\mysql\mysql.js:25:8)
at Object.userDao.getUserByName (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\lib\dao\userDao.js:12:9)
at E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\app.js:54:11
at callbacks (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:272:11)
at param (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:246:11)
at pass (E:\zm\cocos\JS\lordofpomelo-master\lordofpomelo-master\web-server\node_modules\express\lib\router\index.js:253:5)
The text was updated successfully, but these errors were encountered: