Parse simple SQL statements into an abstract syntax tree (AST) with the visited tableList and convert it back to SQL
750
stars
172
forks
source link
Throws SyntaxError when parsing foreign key definition without backticks in sqlite #1952
Closed
1ilit closed 3 weeks ago
Describe the bug Throws SyntaxError when parsing foreign key definition without backticks for the table name in sqlite
This works fine:
This throws a syntax error:
Database Engine SQLite
To Reproduce -the SQL that be parsed
-the node-sql-parser version v5.2.0 -the node version v18.20.3
Expected behavior Produce ast
Additional context Minimal reproducible example: https://stackblitz.com/edit/stackblitz-starters-3nslzy?file=index.js