Closed kutsurak closed 7 years ago
interesting. so MonetDB doesn't execute the query if there is no newline after a comment?
Think of it this way:
SELECT * FROM foo; --This is OK because the semicolon is visible to the parser
vs
SELECT * FROM foo --This is not OK because the semicolon is part of the comment ;
The python wrapper (correctly) does not require the user to add a semicolon to the query, and just concatenates it in the end. If the query that the user gave happens to end with a comment we get the second (faulty) case from above.
right
If the user ends a query with a comment, the query is not executed.
This PR adds a test and the fix.