-
Notifications
You must be signed in to change notification settings - Fork 31
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
Model.count 的时候,在 callback 函数里面 throw Error 会触发两次 callback #34
Comments
XadillaX
changed the title
Query.prototype.count 方法,try{}catch(){} 误截获应用错误问题
Model.count 的时候,在 callback 函数里面 throw Error 会触发两次 callback
Jan 19, 2016
问题在于这里 Lines 717 to 723 in 50376fa
try {
callback(undefined, result[0]["COUNT(0)"]);
promisor._onExecuteResult(undefined, result[0]["COUNT(0)"]);
} catch(e) {
callback(undefined, 0);
promisor._onExecuteResult(undefined, 0);
} 当 |
XadillaX
added a commit
that referenced
this issue
Jan 19, 2016
XadillaX
added a commit
that referenced
this issue
Jan 19, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这段代码的
callback
会被多次触发。The text was updated successfully, but these errors were encountered: