-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Support multi-table truncate. #1821
Comments
Greetings. This is Postgres specific and not standard compliant. I would like to recommend writing standard compliant SQL. If you still need support for any RDBMS specific feature then either provide or sponsor an implementation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Grammar or Syntax Description
JSQLParser fails to parse Postgres queries with multi-parameter "TRUNCATE" statement.
SQL Example
Additional context
JSQLParser version: 4.6.
I also tested with 4.7 SNAPSHOT
Postgres sql.
https://www.postgresql.org/docs/12/sql-truncate.html
The multi-table truncate statement is necessary in case the two tables are referencing each other by some constraints. In that case Postgres returns an error if you try to truncate each table individually.
The text was updated successfully, but these errors were encountered: