You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A whitespace between ARRAY and the square bracket [ will result in the parser missing the replacement of the :parameter var with ?.
How to reproduce
$QUERY = <<<SQL
with config as (
select ARRAY [:parameter] as parameter
)
SQL;
does not work but
$QUERY = <<<SQL
with config as (
select ARRAY[:parameter] as parameter
)
SQL;
works
In Connection.php:1089 ([$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);),
the ARRAY [:parameter] should be replaced with ARRAY[?].
I guess it comes down to modifying the regex in Parser.php@BRACKET_IDENTIFIER
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
A whitespace between
ARRAY
and the square bracket[
will result in the parser missing the replacement of the:parameter
var with?
.How to reproduce
does not work but
works
In Connection.php:1089 (
[$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
),the
ARRAY [:parameter]
should be replaced withARRAY[?]
.I guess it comes down to modifying the regex in Parser.php@BRACKET_IDENTIFIER
The text was updated successfully, but these errors were encountered: