Skip to content

pdo_pgsql: document ATTR_PREFETCH lazy fetch, fix copyFromArray sig - #5629

Merged
philip merged 3 commits into
php:masterfrom
philip:docs/pdo-pgsql-fetch-update
Jun 22, 2026
Merged

philip merged 3 commits into
php:masterfrom
philip:docs/pdo-pgsql-fetch-update

Conversation

@philip

@philip philip commented Jun 21, 2026

Copy link
Copy Markdown
Member

Document the PHP 8.5 lazy (single-row) fetch mode: add a PDO::ATTR_PREFETCH entry 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 to array|Traversable in the synopsis, matching the changelog entry already added in #5626 and closes tasks noted in the PHP 8.5 Documentation Tracker

Behavior verified against PostgreSQL on PHP 8.5.7.

@philip
philip requested a review from kamil-tekiela as a code owner June 21, 2026 00:11
@philip
philip requested a review from jordikroon June 21, 2026 00:15
Comment thread reference/pdo/constants.xml Resolved
@philip
philip merged commit 205c3b8 into php:master Jun 22, 2026
2 checks passed
KentarouTakeda added a commit to php/doc-ja that referenced this pull request Jul 10, 2026
PDO の PHP 8.5.0 非推奨対応と、pdo_pgsql の COPY/LOB メソッド・`PDO::ATTR_PREFETCH` の文書化を php/doc-en の以下に同期しました。

- php/doc-en@858400b (php/doc-en#5626)
- php/doc-en@205c3b8 (php/doc-en#5629)
- php/doc-en@8d40a1f (php/doc-en#5635)

### reference/pdo_pgsql(20件) — php/doc-en@858400b / php/doc-en@205c3b8
COPY/LOB メソッドの例・errors・changelog 追加、`PDO::ATTR_PREFETCH`(遅延フェッチ)、`TRANSACTION_*` 定数の非推奨警告、overloaded メソッドへの `#[\Deprecated]`/非推奨マークアップ。
constants / pdo-pgsql / reference / pdo/pgsql/*(8: copy・lob・get メソッド)/ pdo_overloaded/*(9: 8.5 非推奨)

### reference/pdo・pdo_mysql・pdo_firebird・pdo_odbc の constants(4件) — php/doc-en@8d40a1f
PDO 定数の PHP 8.5.0 非推奨警告(対応する `Pdo\X` 定数への移行案内)。reference/pdo/constants.xml は `PDO::ATTR_PREFETCH` と `Pdo\Sqlite::DETERMINISTIC` の非推奨も追加。

### reference/pdo_sqlite(3件) — php/doc-en@8d40a1f
sqliteCreateAggregate / sqliteCreateCollation / sqliteCreateFunction への 8.5.0 非推奨マークアップ。

### appendices/migration84/other-changes.xml(1件) — php/doc-en@858400b
定数名リネーム `PGSQL_ATTR_RESULT_MEMORY_SIZE` → `Pdo\Pgsql::ATTR_RESULT_MEMORY_SIZE`。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants