Merge branch 'Bug-DBIOWrongParamCountWithCommentBeforeParam' into Feature-AclLoginClassUpdateTokenCheckWithUuidV4
This commit is contained in:
@@ -5141,11 +5141,11 @@ final class CoreLibsDBIOTest extends TestCase
|
|||||||
INSERT INTO table_with_primary_key (
|
INSERT INTO table_with_primary_key (
|
||||||
row_int, row_numeric, row_varchar, row_varchar_literal
|
row_int, row_numeric, row_varchar, row_varchar_literal
|
||||||
) VALUES (
|
) VALUES (
|
||||||
-- comment
|
-- comment 1
|
||||||
$1, $2,
|
$1, $2,
|
||||||
-- comment
|
-- comment 2
|
||||||
$3
|
$3
|
||||||
-- comment
|
-- comment 3
|
||||||
, $4
|
, $4
|
||||||
)
|
)
|
||||||
SQL,
|
SQL,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class ConvertPlaceholder
|
|||||||
private const PATTERN_QUERY_SPLIT =
|
private const PATTERN_QUERY_SPLIT =
|
||||||
',|' // for ',' mostly in INSERT
|
',|' // for ',' mostly in INSERT
|
||||||
. '[(<>=]|' // general set for (, <, >, = in any query with any combination
|
. '[(<>=]|' // general set for (, <, >, = in any query with any combination
|
||||||
. '(?:[\(,]\s*\-\-\s*\w*)\r?\n|' // a comment that starts after a ( or ,
|
. '(?:[\(,]\s*\-\-[\s\w]*)\r?\n|' // a comment that starts after a ( or ,
|
||||||
. '\^@|' // text search for start from text with ^@
|
. '\^@|' // text search for start from text with ^@
|
||||||
. '\|\||' // concats two elements
|
. '\|\||' // concats two elements
|
||||||
. '&&|' // array overlap
|
. '&&|' // array overlap
|
||||||
|
|||||||
Reference in New Issue
Block a user