File tree 2 files changed +15
-1
lines changed
modules/database-commons/src
main/java/org/testcontainers/ext
test/java/org/testcontainers/ext 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,12 @@ Lexem next() {
141
141
return Lexem .SEPARATOR ;
142
142
} else if (matchesSingleLineComment () || matchesMultilineComment ()) {
143
143
return Lexem .COMMENT ;
144
- } else if (matchesQuotedString ('\'' ) || matchesQuotedString ('"' ) || matchesDollarQuotedString ()) {
144
+ } else if (
145
+ matchesQuotedString ('\'' ) ||
146
+ matchesQuotedString ('"' ) ||
147
+ matchesQuotedString ('`' ) ||
148
+ matchesDollarQuotedString ()
149
+ ) {
145
150
return Lexem .QUOTED_STRING ;
146
151
} else if (matches (identifier )) {
147
152
return Lexem .IDENTIFIER ;
Original file line number Diff line number Diff line change @@ -68,6 +68,15 @@ public void testIssue1547Case2() {
68
68
splitAndCompare (script , expected );
69
69
}
70
70
71
+ @ Test
72
+ public void testSplittingEnquotedSemicolon () {
73
+ String script = "CREATE TABLE `bar;bar` (\n " + " end_time VARCHAR(255)\n " + ");" ;
74
+
75
+ List <String > expected = Arrays .asList ("CREATE TABLE `bar;bar` ( end_time VARCHAR(255) )" );
76
+
77
+ splitAndCompare (script , expected );
78
+ }
79
+
71
80
@ Test
72
81
public void testUnusualSemicolonPlacement () {
73
82
String script = "SELECT 1;;;;;SELECT 2;\n ;SELECT 3\n ; SELECT 4;\n SELECT 5" ;
You can’t perform that action at this time.
0 commit comments