Skip to content

Commit 329791a

Browse files
committed
alter sequence
1 parent d0b2c39 commit 329791a

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/pegjs/oracle.pegjs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,26 @@ stmt
150150
/ create_domain_stmt
151151
/ drop_domain_stmt
152152
/ commit_stmt
153-
/ create_squence_stmt
153+
/ create_sequence_stmt
154+
/ alter_sequence_stmt
154155

155-
create_squence_stmt
156+
alter_sequence_stmt
157+
= operation:KW_ALTER _
158+
object:KW_SEQUENCE _
159+
if_exists:if_exists? _
160+
name:schema_object _
161+
settings:sequence_settings? _
162+
SEMI_COLON {
163+
return {
164+
operation,
165+
object,
166+
if_not_exists,
167+
name,
168+
settings,
169+
};
170+
}
171+
172+
create_sequence_stmt
156173
= operation:KW_CREATE _
157174
object:KW_SEQUENCE _
158175
if_not_exists:if_not_exists? _

0 commit comments

Comments
 (0)