Skip to content
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

Closed

Conversation

AndriusUkelis
Copy link

Q A
Type feature

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.

Copy link
Member

@derrabus derrabus left a 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.

docs/en/reference/data-retrieval-and-manipulation.rst Outdated Show resolved Hide resolved
@derrabus
Copy link
Member

derrabus commented Apr 6, 2023

The DB2 failure appears to be related to your changes.

@derrabus
Copy link
Member

Tests are still failing for DB2.

Comment on lines +111 to +114
case ParameterType::BINARY:
$this->bind($param, $variable, DB2_PARAM_IN, DB2_BINARY);
break;

Copy link
Member

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.

@derrabus
Copy link
Member

derrabus commented Jun 8, 2023

Rebase needed.

@AndriusUkelis Do you have time to answer to my comment?

@phansys Can you assist with getting this to work on DB2?

@phansys
Copy link
Contributor

phansys commented Jun 14, 2023

@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.

@derrabus
Copy link
Member

Closing in favor of #6134.

@derrabus derrabus closed this Aug 28, 2023
@derrabus derrabus removed this from the 3.7.0 milestone Aug 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants