Skip to content

Commit

Permalink
Autoupdate grammar targets
Browse files Browse the repository at this point in the history
  • Loading branch information
svengiegerich authored and github-actions[bot] committed May 1, 2024
1 parent fcb0cdb commit e0f21a5
Show file tree
Hide file tree
Showing 6 changed files with 1,637 additions and 1,718 deletions.
8 changes: 4 additions & 4 deletions src/pytsql/grammar/TSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ xml_index_option

// https://msdn.microsoft.com/en-us/library/ms187926(v=sql.120).aspx
create_or_alter_procedure
: ((CREATE (OR (ALTER | REPLACE))?) | ALTER) proc = (PROC | PROCEDURE) procName = func_proc_name_schema (
: ((CREATE (OR ALTER)?) | ALTER) proc = (PROC | PROCEDURE) procName = func_proc_name_schema (
';' DECIMAL
)? ('('? procedure_param (',' procedure_param)* ')'?)? (
WITH procedure_option (',' procedure_option)*
Expand All @@ -2403,7 +2403,7 @@ create_or_alter_trigger
;

create_or_alter_dml_trigger
: (CREATE (OR (ALTER | REPLACE))? | ALTER) TRIGGER simple_name ON table_name (
: (CREATE (OR ALTER)? | ALTER) TRIGGER simple_name ON table_name (
WITH dml_trigger_option (',' dml_trigger_option)*
)? (FOR | AFTER | INSTEAD OF) dml_trigger_operation (',' dml_trigger_operation)* (WITH APPEND)? (
NOT FOR REPLICATION
Expand All @@ -2420,7 +2420,7 @@ dml_trigger_operation
;

create_or_alter_ddl_trigger
: (CREATE (OR (ALTER | REPLACE))? | ALTER) TRIGGER simple_name ON (ALL SERVER | DATABASE) (
: (CREATE (OR ALTER)? | ALTER) TRIGGER simple_name ON (ALL SERVER | DATABASE) (
WITH dml_trigger_option (',' dml_trigger_option)*
)? (FOR | AFTER) ddl_trigger_operation (',' ddl_trigger_operation)* AS sql_clauses+
;
Expand Down Expand Up @@ -2568,7 +2568,7 @@ create_table_index_option

// https://msdn.microsoft.com/en-us/library/ms187956.aspx
create_view
: (CREATE (OR (ALTER | REPLACE))? | ALTER) VIEW simple_name ('(' column_name_list ')')? (
: (CREATE (OR ALTER)? | ALTER) VIEW simple_name ('(' column_name_list ')')? (
WITH view_attribute (',' view_attribute)*
)? AS select_statement_standalone (WITH CHECK OPTION)? ';'?
;
Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/TSqlParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit e0f21a5

Please sign in to comment.