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

Accept the underlying statement as an oci8 statement constructor argument #4957

Merged

Conversation

morozov
Copy link
Member

@morozov morozov commented Nov 6, 2021

Q A
Type improvement
BC Break no

This patch changes the oci8 driver-level statement to accept the underlying statement as a constructor argument leaving the job of preparing the statement to the connection. As a bonus, now a single SQL parser instance is reused for all statements prepared by a given connection.

Additionally, it removes the $boundValues property. It might be necessary in the early PHP 7 days but doesn't seem necessary now (besides PHP 7.4 on CI, tested locally with PHP 7.3.32).

@morozov morozov marked this pull request as ready for review November 6, 2021 19:16
@morozov morozov added this to the 3.2.0 milestone Nov 6, 2021
@morozov morozov requested review from derrabus and greg0ire November 6, 2021 19:16
@morozov morozov changed the title Accept the underlying statement an oci8 statement constructor argument Accept the underlying statement as an oci8 statement constructor argument Nov 6, 2021
@derrabus derrabus merged commit a07f00f into doctrine:3.2.x Nov 7, 2021
@morozov morozov deleted the oci8-statement-constructor-argument branch November 7, 2021 14:22
@morozov morozov mentioned this pull request Jan 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2022
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