Closed dataspoon closed 6 years ago
dblite does not handle CTEs https://www.sqlite.org/lang_with.html
The verify select method needs to be modified to include WITH|with.
An example of a CTE: WITH test(name) AS ( SELECT "JOHN" ) SELECT name FROM test;
you mean here ? https://github.com/WebReflection/dblite/blob/master/src/dblite.js#L45
That's the line.
changing it to: SELECT = /^(?:select|SELECT|pragma|PRAGMA|with|WITH) /,
fixes the CTE issue.
dblite does not handle CTEs https://www.sqlite.org/lang_with.html
The verify select method needs to be modified to include WITH|with.
An example of a CTE: WITH test(name) AS ( SELECT "JOHN" ) SELECT name FROM test;