CodeFoodPixels / node-promise-mysql

A wrapper for mysqljs/mysql that wraps function calls with Bluebird promises.
MIT License
338 stars 64 forks source link

Disposer Pattern not works #47

Closed ershov-ilya closed 7 years ago

ershov-ilya commented 7 years ago
ReferenceError: rows is not defined
    at /var/www/path/to/project/sqlQuery.js:5:22
    at tryCatcher (/var/www/path/to/project/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/var/www/path/to/project/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/var/www/path/to/project/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/var/www/path/to/project/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/var/www/path/to/project/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/var/www/path/to/project/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/var/www/path/to/project/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/var/www/path/to/project/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)
CodeFoodPixels commented 7 years ago

Please can you add some more detail? A stack trace on it's own is no use to me.

CodeFoodPixels commented 7 years ago

@ershov-ilya You've not responded so I'm going to close this issue. Feel free to reopen and clarify the actual issue.

CodeFoodPixels commented 7 years ago

I've just noticed that there's an error in the docs. I'm presuming you just used the example code. I'll fix it.