Skip to content

Fix GH-21683: Handle empty result set in single-row mode#21684

Closed
thomasschiet wants to merge 1 commit intophp:PHP-8.5from
thomasschiet:fix/pgsql-single-row-mode-empty-table
Closed

Fix GH-21683: Handle empty result set in single-row mode#21684
thomasschiet wants to merge 1 commit intophp:PHP-8.5from
thomasschiet:fix/pgsql-single-row-mode-empty-table

Conversation

@thomasschiet
Copy link
Copy Markdown
Contributor

Fixes #21683 by checking if PQgetResult returns NULL.

@devnexen
Copy link
Copy Markdown
Member

devnexen commented Apr 9, 2026

Hi @thomasschiet since it s a fix, it needs to target the lowest branch it applies to (i.e. PHP-8.5 or PHP-8.4 ?).

@devnexen
Copy link
Copy Markdown
Member

devnexen commented Apr 9, 2026

as mentioned in your report, it looks correct at first glance I ll have a better look sometime today. Thanks !

@thomasschiet thomasschiet force-pushed the fix/pgsql-single-row-mode-empty-table branch from a8de9d3 to 5923d7d Compare April 9, 2026 11:02
Copy link
Copy Markdown
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

lctm

@devnexen devnexen closed this in ec79850 Apr 18, 2026
@devnexen
Copy link
Copy Markdown
Member

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pdo_pgsql throws with ATTR_PREFETCH=0 on empty result set

2 participants