forked from phoedos/pmd
[plsql] Fix object table substitution clause for CREATE TABLE
This commit is contained in:
@ -3648,7 +3648,7 @@ ASTTable Table() :
|
||||
<TABLE> ObjectNameDeclaration()
|
||||
[ <SHARING> "=" ( <METADATA> | <DATA> | <EXTENDED> <DATA> | <NONE> ) ]
|
||||
//object_table
|
||||
( <OF> Datatype() [ [ <NOT> ] KEYWORD("SUBSTITUTABLE") <AT> <ALL> KEYWORD("LEVELS") ]|
|
||||
( <OF> Datatype() [ [ <NOT> ] <SUBSTITUTABLE> <AT> <ALL> KEYWORD("LEVELS") ]|
|
||||
//relational_table
|
||||
[ "(" ( LOOKAHEAD(2) OutOfLineConstraint() | TableColumn() ) ("," ( LOOKAHEAD(2) OutOfLineConstraint() | TableColumn() ))* ")" ]
|
||||
[LOOKAHEAD(4) <ON> <COMMIT> (<DROP> | <PRESERVE>) <DEFINITION>]
|
||||
@ -5586,7 +5586,6 @@ ASTKEYWORD_UNRESERVED KEYWORD_UNRESERVED (): {}
|
||||
| <LENGTH>
|
||||
//| <LESS>
|
||||
| <LEVEL>
|
||||
//| <LEVELS>
|
||||
| <LIBRARY>
|
||||
//| <LIKE_EXPAND>
|
||||
| <LIKE2>
|
||||
|
@ -74,6 +74,10 @@ CREATE TABLE later (col1 NUMBER, col2 VARCHAR2(20)) SEGMENT CREATION DEFERRED
|
||||
|
||||
CREATE TABLE persons OF person_t;
|
||||
|
||||
CREATE TABLE persons OF person_t SUBSTITUTABLE AT ALL LEVELS;
|
||||
|
||||
CREATE TABLE persons OF person_t NOT SUBSTITUTABLE AT ALL LEVELS;
|
||||
|
||||
CREATE TABLE books (title VARCHAR2(100), author person_t);
|
||||
|
||||
CREATE TABLE dept_80
|
||||
|
Reference in New Issue
Block a user