Closed
Description
In SQLPage, we parse SQL queries using sqlparser in order to be able to modify them, and then dump them as text to run them on the database. This requires the process of parsing and then stringifying back not to break the semantics nor the syntax of the query.
However, the following SQLite query:
SELECT CURRENT_TIMESTAMP;
when parsed and then dumped back, gives:
SELECT CURRENT_TIMESTAMP();
This breaks the syntax for SQLite, which gives
sqlite> SELECT CURRENT_TIMESTAMP();
Error: in prepare, near "(": syntax error (1)
Metadata
Metadata
Assignees
Labels
No labels