Next query executed after failed query returns invalid output #21
Labels
No labels
dependencies
javascript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quodatum/basex-node#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello. I have following script to perform a test:
If I try to perform two correct queries in turn:
all seem to be work as expected:
But if I put invalid query at first:
result of the next query also incorrect:
Is it a bug in your library or I simply doing something wrong? Thanks.
Hi Jacob,
Looks like a bug in my library (in the parsing of the error response ) to me.
I will take a look and try to fix it in the next day or so. This project has been a bit neglected (last used with Node 0.6)
Meantime you could try https://github.com/alxarch/basex-stream which appears to handle the comms in the cleaner fashion.
/Andy
query.resultswas handling errors ok butquery.executewas not pulling error message from stream. Will package and push to npm this week.v0.8.0 now released to npm should fix this issue. Thanks for reporting.
I can confirm that the problem has been fixed in my case. Thanks for the quick resolution!
thanks