Merge branch 'Bug-DBIOWrongParamCountWithCommentBeforeParam' into Feature-AclLoginClassUpdateTokenCheckWithUuidV4

This commit is contained in:
Clemens Schwaighofer
2024-12-10 13:37:43 +09:00
2 changed files with 4 additions and 4 deletions

View File

@@ -5141,11 +5141,11 @@ final class CoreLibsDBIOTest extends TestCase
INSERT INTO table_with_primary_key (
row_int, row_numeric, row_varchar, row_varchar_literal
) VALUES (
-- comment
-- comment 1
$1, $2,
-- comment
-- comment 2
$3
-- comment
-- comment 3
, $4
)
SQL,

View File

@@ -20,7 +20,7 @@ class ConvertPlaceholder
private const PATTERN_QUERY_SPLIT =
',|' // for ',' mostly in INSERT
. '[(<>=]|' // 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 ^@
. '\|\||' // concats two elements
. '&&|' // array overlap