Skip to content

Commit 2e6d230

Browse files
authored
Merge pull request #6 from 1ilit/drop-index
drop index
2 parents b12b528 + 0b67027 commit 2e6d230

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/pegjs/oracle.pegjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,27 @@ stmt
154154
/ alter_sequence_stmt
155155
/ drop_sequence_stmt
156156
/ create_index_stmt
157+
/ drop_index_stmt
158+
159+
drop_index_stmt
160+
= operation:KW_DROP _
161+
object:KW_INDEX _
162+
if_exists:if_exists? _
163+
name:schema_object _
164+
online:KW_ONLINE?
165+
force:KW_FORCE?
166+
invalidation:(x:(KW_DEFERRED / KW_IMMEDIATE) _ KW_INVALIDATION { return x; })? _
167+
SEMI_COLON {
168+
return {
169+
operation,
170+
object,
171+
if_exists,
172+
name,
173+
online,
174+
force,
175+
invalidation
176+
};
177+
}
157178

158179
// TODO: missing index_ilm_clause, cluster_index_clause, bitmap_join_index_clause
159180
create_index_stmt

0 commit comments

Comments
 (0)