Skip to content

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

Merged
derrabus merged 1 commit intodoctrine:3.2.xfrom
morozov:oci8-statement-constructor-argument
Nov 7, 2021
Merged

Accept the underlying statement as an oci8 statement constructor argument#4957
derrabus merged 1 commit intodoctrine:3.2.xfrom
morozov:oci8-statement-constructor-argument

Conversation

@morozov
Copy link
Copy Markdown
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