pdo_pgsql: document ATTR_PREFETCH lazy fetch, fix copyFromArray sig#5629
Open
philip wants to merge 1 commit into
Open
pdo_pgsql: document ATTR_PREFETCH lazy fetch, fix copyFromArray sig#5629philip wants to merge 1 commit into
philip wants to merge 1 commit into
Conversation
jordikroon
requested changes
Jun 21, 2026
| The PDO_PGSQL driver instead treats this attribute as a toggle: as of | ||
| PHP 8.5.0, a value of <literal>0</literal> enables lazy (single-row) | ||
| fetching. See | ||
| <link linkend="pdo-pgsql.constants.attr-prefetch"><constant>PDO::ATTR_PREFETCH</constant></link> |
Member
There was a problem hiding this comment.
I believe this doesn't need a <link>. In fact I feel this will render a duplicate anchor tag.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Document the PHP 8.5 lazy (single-row) fetch mode: add a
PDO::ATTR_PREFETCHentry to the PDO_PGSQL constants describing the =0 toggle, its connection vs per-statement scope, and the single-active-statement caveat. Note the driver-specific behavior on the generic PDO::ATTR_PREFETCH entry.Update
Pdo\Pgsql::copyFromArray's rows parameter toarray|Traversablein the synopsis, matching the changelog entry already added in #5626 and closes tasks noted in the PHP 8.5 Documentation TrackerBehavior verified against PostgreSQL on PHP 8.5.7.