taozhi8833998 / node-sql-parser

Parse simple SQL statements into an abstract syntax tree (AST) with the visited tableList and convert it back to SQL
https://taozhi8833998.github.io/node-sql-parser/
Apache License 2.0
755 stars 172 forks source link

DROP TABLE IF EXISTS not supported in build/Postgres #1933

Closed carloslfu closed 1 month ago

carloslfu commented 1 month ago

DROP TABLE IF EXISTS statement is not supported by the Postgres build. Here is an example:

DROP TABLE IF EXISTS table_name;

The error that appears is:

Screenshot 2024-06-03 at 9 11 05 PM

taozhi8833998 commented 1 month ago

@carloslfu Sorry for that, fixed it.