Skip to content

Commit e5cd7c8

Browse files
authored
bugfix issue #1036: supporting DROP SEQUENCE (#1037)
1 parent 3d7f55c commit e5cd7c8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4466,6 +4466,8 @@ Drop Drop():
44664466
tk=<K_VIEW>
44674467
|
44684468
tk=<K_SCHEMA>
4469+
|
4470+
tk=<K_SEQUENCE>
44694471
)
44704472
{ drop.setType(tk.image); }
44714473

src/test/java/net/sf/jsqlparser/statement/drop/DropTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,9 @@ public void testDropViewIssue545_2() throws JSQLParserException {
8989
public void testDropSchemaIssue855() throws JSQLParserException {
9090
assertSqlCanBeParsedAndDeparsed("DROP SCHEMA myschema");
9191
}
92+
93+
@Test
94+
public void testDropSequence() throws JSQLParserException {
95+
assertSqlCanBeParsedAndDeparsed("DROP SEQUENCE mysequence");
96+
}
9297
}

0 commit comments

Comments
 (0)