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
43
43
Also I would like to know about needed examples or documentation stuff.
44
44
45
45
## Extensions in the latest SNAPSHOT version 1.2
46
+
47
+ * support for ** drop view**
46
48
* support for indexed JDBC parameters at multiple places
47
49
* allowed ** index** as object name
48
50
* switched to JavaCC ** modern template**
Original file line number Diff line number Diff line change @@ -3312,6 +3312,8 @@ Drop Drop():
3312
3312
tk=<K_TABLE>
3313
3313
|
3314
3314
tk=<K_INDEX>
3315
+ |
3316
+ tk=<K_VIEW>
3315
3317
)
3316
3318
{ drop.setType(tk.image); }
3317
3319
Original file line number Diff line number Diff line change @@ -45,4 +45,14 @@ public void testDropIfExists() throws JSQLParserException {
45
45
public void testDropRestrictIssue510 () throws JSQLParserException {
46
46
assertSqlCanBeParsedAndDeparsed ("DROP TABLE TABLE2 RESTRICT" );
47
47
}
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
+ }
48
58
}
You can’t perform that action at this time.
0 commit comments