Skip to content
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

PL/SQL grammar does not support EDITIONABLE triggers (19c) #4340

Open
piotrlg9 opened this issue Nov 25, 2024 · 0 comments
Open

PL/SQL grammar does not support EDITIONABLE triggers (19c) #4340

piotrlg9 opened this issue Nov 25, 2024 · 0 comments

Comments

@piotrlg9
Copy link

piotrlg9 commented Nov 25, 2024

In Oracle SQL 12c or later triggers can have "EDITIONABLE" / "NONEDITIONABLE" keyword before "TRIGGER" keyword.

In current grammar available here:
https://github.com/antlr/grammars-v4/blob/master/sql/plsql/PlSqlParser.g4

It's not possible, see:

create_trigger
    : CREATE (OR REPLACE)? TRIGGER trigger_name (
        simple_dml_trigger
        | compound_dml_trigger
        | non_dml_trigger
    ) trigger_follows_clause? (ENABLE | DISABLE)? trigger_when_clause? trigger_body
    ;

Please include both these keywords in the grammar.

It looks like these keywords are available since version 12.1:
https://docs.oracle.com/database/121/LNPLS/create_trigger.htm#GUID-AF9E33F1-64D1-4382-A6A4-EC33C36F237B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant