-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL JSONB contains operator is broken #1106
Comments
This is actually a PHP bug, solved in 7.4 by https://wiki.php.net/rfc/pdo_escape_placeholders (see also https://bugs.php.net/bug.php?id=71885) |
I do not believe this is purely a PHP bug. The same query works just fine in doctrine/migrations v3.0.1 and breaks in v3.0.2. |
Same happening here, just by upgrading to 3.0.2 on PHP 7.4.13. I traced it down with xdebug to d3cf285#diff-234fe782577400df58580164cb830c2a2067c411c7a33f649a220719794d76fbL297 (takes while until it jumps). Incoming params and types are an empty array. The change from The deprecation notice for Hope thats the right hunch. |
BC Break Report
Summary
The migrations worked fine with 3.0.1, but version 3.0.2 seems to be trying to replace the
?
PostgreSQL operand by$1
of queries like this:https://www.postgresql.org/docs/9.4/functions-json.html#FUNCTIONS-JSONB-OP-TABLE
Previous behavior
This migration was valid
Current behavior
How to reproduce
Make any migration with the
?
operand on a PostgreSQL database on (at least) PHP 7.3The text was updated successfully, but these errors were encountered: