We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01bcbd5 commit f6abb9eCopy full SHA for f6abb9e
src/test/java/net/sf/jsqlparser/statement/BlockTest.java
@@ -62,4 +62,18 @@ public void testGetStatements() throws JSQLParserException {
62
+ "SELECT * FROM feature;\n"
63
+ "END;\n", stmts.toString());
64
}
65
+
66
+ @Test
67
+ public void testBlock2() throws JSQLParserException {
68
+ Statements stmts = CCJSqlParserUtil.parseStatements("begin\n"
69
+ + "update table1 set a = 'xx' where b = 'condition1';\n"
70
+ + "update table1 set a = 'xx' where b = 'condition2';\n"
71
+ + "end;");
72
+ assertEquals("BEGIN\n"
73
+ + "UPDATE table1 SET a = 'xx' WHERE b = 'condition1';\n"
74
+ + "UPDATE table1 SET a = 'xx' WHERE b = 'condition2';\n"
75
+ + "END;\n"
76
+ + "", stmts.toString());
77
78
+ }
79
0 commit comments