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 4fbef4b commit b1cb06dCopy full SHA for b1cb06d
1 file changed
modules/database-commons/src/test/java/org/testcontainers/ext/ScriptSplittingTest.java
@@ -281,6 +281,21 @@ public void testUnclosedBlockComment() {
281
}
282
283
284
+ @Test
285
+ public void testIssue1452Case() {
286
+ String script = "create table test (text VARCHAR(255));\n" +
287
+ "\n" +
288
+ "/* some comment */\n" +
289
+ "insert into `test` (`text`) values ('a b');";
290
+
291
+ List<String> expected = asList(
292
+ "create table test (text VARCHAR(255))",
293
+ "insert into `test` (`text`) values ('a b')"
294
+ );
295
296
+ splitAndCompare(script, expected);
297
+ }
298
299
private void splitAndCompare(String script, List<String> expected) {
300
final List<String> statements = doSplit(script);
301
Assertions.assertThat(statements).isEqualTo(expected);
0 commit comments