Skip to content

Bind only non-NULL BLOB values as BLOB on oci8 and ibm_db2#5466

Merged
morozov merged 1 commit intodoctrine:3.3.xfrom
morozov:issues/5359
Jun 26, 2022
Merged

Bind only non-NULL BLOB values as BLOB on oci8 and ibm_db2#5466
morozov merged 1 commit intodoctrine:3.3.xfrom
morozov:issues/5359

Conversation

@morozov
Copy link
Member

@morozov morozov commented Jun 24, 2022

Fixes #5359.

@morozov morozov force-pushed the issues/5359 branch 3 times, most recently from 988e765 to ed5de29 Compare June 25, 2022 02:19
@morozov morozov added this to the 3.3.8 milestone Jun 25, 2022
@morozov morozov marked this pull request as ready for review June 25, 2022 02:30
@morozov morozov merged commit c795860 into doctrine:3.3.x Jun 26, 2022
@morozov morozov deleted the issues/5359 branch June 26, 2022 15:26
$variable =& $lob;
$variable =& $lob;
} else {
$type = ParameterType::STRING;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity, why did you choose ParameterType::STRING here over ParameterType::NULL?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s no special handling of the null parameters in oci8.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks for explaining.

@morozov morozov changed the title Bind only non-NULL BLOB values as BLOB on OCI8 Bind only non-NULL BLOB values as BLOB on oci8 and ibm_db2 Jun 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2023
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.

Flush an object with NULL values in LOB fields leads to an error, OCI8

3 participants

Comments