-
Notifications
You must be signed in to change notification settings - Fork 19
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
[2.0.0-beta.1] cb is not defined error when insert_batch with empty array #36
Comments
It's interesting, I actually have a test written, running, and passing that should account for this scenario:
I'll have to do some research... |
@Flamenco I found the issue--it didn't really have anything to do with the callback, per se... strange/hard bug to track down. Problem is that when its fixed, it runs the expected a query: I could simply return the response object with I'm not really sure there is a great way to get around this issue other than simply not allowing empty arrays in the |
I suggest to return |
Also, in the main configuration, there can be an option to allow bypassing the database. (allowBypass:true). That will make it very clear that some requests, such as this, will not hit the wire. |
driver: mysql
Expected behavior would be to simply invoke the callback. If the server response with 0 affected rows is needed, then to actually call the DB with no rows to insert.
The text was updated successfully, but these errors were encountered: