File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/drop Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ To help JSqlParsers development you are encouraged to provide
4343Also I would like to know about needed examples or documentation stuff.
4444
4545## Extensions in the latest SNAPSHOT version 1.2
46+
47+ * support for ** drop view**
4648* support for indexed JDBC parameters at multiple places
4749* allowed ** index** as object name
4850* switched to JavaCC ** modern template**
Original file line number Diff line number Diff line change @@ -3312,6 +3312,8 @@ Drop Drop():
33123312 tk=<K_TABLE>
33133313 |
33143314 tk=<K_INDEX>
3315+ |
3316+ tk=<K_VIEW>
33153317 )
33163318 { drop.setType(tk.image); }
33173319
Original file line number Diff line number Diff line change @@ -45,4 +45,14 @@ public void testDropIfExists() throws JSQLParserException {
4545 public void testDropRestrictIssue510 () throws JSQLParserException {
4646 assertSqlCanBeParsedAndDeparsed ("DROP TABLE TABLE2 RESTRICT" );
4747 }
48+
49+ @ Test
50+ public void testDropViewIssue545 () throws JSQLParserException {
51+ assertSqlCanBeParsedAndDeparsed ("DROP VIEW myview" );
52+ }
53+
54+ @ Test
55+ public void testDropViewIssue545_2 () throws JSQLParserException {
56+ assertSqlCanBeParsedAndDeparsed ("DROP VIEW IF EXISTS myview" );
57+ }
4858}
You can’t perform that action at this time.
0 commit comments