You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is solved in the current master by switching to monetdbe engine style query preparation logic, but the python logic still has an issue with this. So I'm leaving this open so I can solve it on the python side for the next release.
Officially, the only special character inside a single quote delimited string in SQL is a single quote, and you double it to get one single quote in your string. Similarly for double quote (for quoting identifiers).
We currently also recognize \ in single-quoted strings, but shoudln't. You should use an E (e) prefix (like Python raw strings) to get backslash escapes. We also recognize the R (r) prefix which is similar to Python's, except a string can end with one backslash. And single quote is still special.
Parsing error in handling a correct query
To Reproduce
raise ProgrammingError(f"unexpected symbol '{symbol}' in operation")
monetdbe.exceptions.ProgrammingError: unexpected symbol ':' in operation
Expected behavior
This is a normal query string that works on MonetDB
The text was updated successfully, but these errors were encountered: