Skip to content

Commit f70ba8b

Browse files
committed
add alter table add column clause
1 parent ae3711f commit f70ba8b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/pegjs/oracle.pegjs

+16-1
Original file line numberDiff line numberDiff line change
@@ -2076,9 +2076,24 @@ column_clauses
20762076
column_clauses_action_option
20772077
= add_column_clause
20782078

2079+
// TODO: missing out_of_line_part_storage
20792080
add_column_clause
20802081
= action:KW_ADD _
2081-
column:(column_definition / virtua_column_definition)
2082+
columns:(
2083+
c:column { return [c]; } /
2084+
LPAR _ x:column xs:(_ COMMA _ c:column { return c; })* _ RPAR { return [x, ...xs]; }
2085+
) _
2086+
properties:column_properties? _ {
2087+
return {
2088+
action,
2089+
columns,
2090+
properties,
2091+
};
2092+
}
2093+
2094+
column
2095+
= column_definition
2096+
/ virtua_column_definition
20822097

20832098
virtua_column_definition
20842099
= name:identifier_name _

0 commit comments

Comments
 (0)