Closed verbacom2 closed 2 years ago
Hello,
I am sorry to inform, that this is actually a bug in ANTLR4 grammar. Currently used grammar is from https://github.com/tshprecher/antlr_psql. I see that there is more recent grammar at https://github.com/antlr/grammars-v4/tree/master/sql/postgresql, however I have not tried to integrate it yet.
In the meanwhile - you can try using Create_stmtContext class and check if some text is present (i.e. USER).
Please check latest release.
Hi gertard,
I´m trying to create custom rules with the sql plugin but I find me with the next issue:
"I need to create a custom rule where the use of "create user" statement isn´t allowed".
When I use the rulesHelper.jar tool with pssql dialect, the next error is getting (ErrorNodeImpl).
I think I should get a tree output contains a line with Create_user_stmtContext statement and not the message "ErrorNodeImpl".
The same issue is getting with "create tablespace" statement.
Could you help with this issue?
Thanks and regards.