Closed delemach closed 10 years ago
Pushed some changes on branch v0.0.10 (not on npm yet) to return something like
{ '0': 'sqlstate: 23000, error: X23000:-391:Integrity constraint violation , msg: Could not execute query.' }
hope it helps. Let me know if you find more bugs. I'll be happy to look.
cheers. a;
I verified this works. Thanks so much. Can you publish it?
will publish it in v0.0.10
Queries that fail don't seem to throw errors pass back error objects to the callback function.
For example, I tested by passing in an INSERT statement that I knew would fail due to constraint violations. I see in the console log:
But there seems to be no feedback at all other than this direct console logging that the query failed. Can you help?