-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Implement binary array parameter type #5994
Implement binary array parameter type #5994
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice PR, thank you. I hope I can manage to find some time to review later or on the weekend.
The DB2 failure appears to be related to your changes. |
Tests are still failing for DB2. |
case ParameterType::BINARY: | ||
$this->bind($param, $variable, DB2_PARAM_IN, DB2_BINARY); | ||
break; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your feature should not require a change in the drivers because array parameter expansion happens before the statement hits the driver. If binary parameters didn't need special treatment before, they shouldn't now.
Rebase needed. @AndriusUkelis Do you have time to answer to my comment? @phansys Can you assist with getting this to work on DB2? |
Sure, I'll try! But please, be patient. I'm a little bit out of scope these weeks. |
Closing in favor of #6134. |
Summary
Doctrine does not support ArrayParameterType::BINARY, thus when trying to query data with binary parameters (some hash for example) - you get no results.
Spotted this when I was working with Sqlite3 driver and trying to query data by binary id column.