We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I see this in scripts:
TRUNCATE myfancytable;
This is allowed by Postgresql:
https://www.postgresql.org/docs/current/sql-truncate.html
TRUNCATE [ TABLE ] [ ONLY ] name [ * ] [, ... ] [ RESTART IDENTITY | CONTINUE IDENTITY ] [ CASCADE | RESTRICT ]
However, the parser complains with:
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "myfancytable" <S_IDENTIFIER> at line 3, column 10. Was expecting: "TABLE"
The text was updated successfully, but these errors were encountered:
Closes JSQLParser#1583
d119768
Closes JSQLParser#1583, removed unnecessary local variable.
bb78fd8
Closes JSQLParser#1583, proper support for deparsing.
4258702
Closes #1583:: Implement Postgresql optional TABLE in TRUNCATE (#1585)
2624826
* Closes #1583 * Closes #1583, removed unnecessary local variable. * Closes #1583, proper support for deparsing.
Successfully merging a pull request may close this issue.
I see this in scripts:
TRUNCATE myfancytable;
This is allowed by Postgresql:
https://www.postgresql.org/docs/current/sql-truncate.html
However, the parser complains with:
The text was updated successfully, but these errors were encountered: