-
Notifications
You must be signed in to change notification settings - Fork 670
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
Try-catch errors with misspelling in SQL #1526
Comments
Hmm. I cant replicate this. Any chance you can make a jsfiddle with it? https://jsfiddle.net/8brvex4f/ I dont understand where use Bonus info
|
OP edited. Sorry for my vague description. @mathiasrw And thanks for the bonus. I tried alasql.promise and it's the same bug. |
Might be related to #1491 - try v2.1.5 and see if that helps |
I updated the dep to 2.1.5 and it's still breaking. I ask not because there's a bug in the median function but for a generic way to handle typos in functions. If I mistype the function name it should not bring my server down. Instead I should be able to catch the error. |
Ahhhhhh. I got it now. Its probably because the execution is run in a |
Hi, Seems like issue is not yet resolved. Can you assign it to me? |
I found a way to catch the error and due to this, the server will not go down. But I am unable to return the error through the callback function. As "cb" is not available in the scope of the function. Any ideas ?? |
What function does not have the callback avaliable? |
yy.Select.prototype.compileSelect2 This Function. Where the error is actually occurring |
Fix released as part of v4.1.5 |
@mathiasrw Check it out. You can fork it to see the error messages.
The server breaks when there's no such function. Ideally it should be caught by the try block.
https://replit.com/@jchnxu/DeficientSubstantialSystemsanalysis#index.js
The text was updated successfully, but these errors were encountered: