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
I'll apologise in advance for not providing a pull request, mainly because the fix (described at the bottom of this text) is trivial. For the sake of thoroughness I'll provide some example code and the expected output vs the actual output.
string(81) "UPDATE some_table SET field1= :p1, field2 = :p2, field3 = :p3 WHERE id = :p4"
array(4) {
[":p1"]=>
int(1)
[":p2"]=>
int(2)
[":p3"]=>
int(3)
[":p4"]=>
int(4)
}
Actual output:
string(81) "UPDATE some_table SET field1 = :p1, field2 = :p2, field3 = :p3 WHERE id = :p4"
array(1) {
[":p4"]=>
int(4)
}
Fix: UpdateQuery::buildSetClause is missing the $args parameter in a call to BaseDriver::deflate. Adding the $args variable as second parameter fixes the issue.
The text was updated successfully, but these errors were encountered:
I'll apologise in advance for not providing a pull request, mainly because the fix (described at the bottom of this text) is trivial. For the sake of thoroughness I'll provide some example code and the expected output vs the actual output.
Example code:
Expected output:
Actual output:
Fix:
UpdateQuery::buildSetClause
is missing the$args
parameter in a call toBaseDriver::deflate
. Adding the$args
variable as second parameter fixes the issue.The text was updated successfully, but these errors were encountered: