Skip to content

Commit

Permalink
Fix oracle create view parse rule
Browse files Browse the repository at this point in the history
  • Loading branch information
zihaoAK47 committed Nov 18, 2023
1 parent 5a4f36f commit e25b202
Show file tree
Hide file tree
Showing 5 changed files with 833 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import BaseRule, DCLStatement, DMLStatement;
createView
: CREATE (OR REPLACE)? (NO? FORCE)? (EDITIONING | EDITIONABLE EDITIONING? | NONEDITIONABLE)? VIEW viewName
( SHARING EQ_ (METADATA | DATA | EXTENDED DATA | NONE))?
( LP_ (alias (VISIBLE | INVISIBLE)? inlineConstraint* (COMMA_ alias (VISIBLE | INVISIBLE)? inlineConstraint*)*
| outOfLineConstraint) RP_ | objectViewClause | xmlTypeViewClause)?
( LP_ ((alias (VISIBLE | INVISIBLE)? inlineConstraint* | outOfLineConstraint) (COMMA_ (alias (VISIBLE | INVISIBLE)? inlineConstraint* | outOfLineConstraint))*) RP_
| objectViewClause | xmlTypeViewClause)?
( DEFAULT COLLATION collationName)? (BEQUEATH (CURRENT_USER | DEFINER))? AS select subqueryRestrictionClause?
( CONTAINER_MAP | CONTAINERS_DEFAULT)?
;
Expand Down
Loading

0 comments on commit e25b202

Please sign in to comment.