File tree 2 files changed +9
-2
lines changed
modules/database-commons/src
main/java/org/testcontainers/ext
test/java/org/testcontainers/ext
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ private boolean endOfBlock(boolean recursive) {
101
101
if (";" .equals (scanner .getCurrentMatch ())) {
102
102
if (recursive ) {
103
103
sb .append (temporary );
104
- appendMatch ();
105
104
}
105
+ appendMatch ();
106
106
return true ;
107
107
}
108
108
sb .append (temporary );
Original file line number Diff line number Diff line change @@ -320,12 +320,19 @@ public void testIfLoopBlocksSpecificSeparator() {
320
320
" IF something_wrong THEN LEAVE rec_loop; END IF;\n " +
321
321
" do_something_else;\n " +
322
322
" END LOOP;\n " +
323
- "END" ,
323
+ "END; " ,
324
324
"CALL something();"
325
325
);
326
326
splitAndCompare (script , expected , "@" );
327
327
}
328
328
329
+ @ Test
330
+ public void oracleStyleBlocks () {
331
+ String script = "BEGIN END; /\n " + "BEGIN END;" ;
332
+ List <String > expected = Arrays .asList ("BEGIN END;" , "BEGIN END;" );
333
+ splitAndCompare (script , expected , "/" );
334
+ }
335
+
329
336
@ Test
330
337
public void testMultiProcedureMySQLScript () {
331
338
String script =
You can’t perform that action at this time.
0 commit comments