Skip to content

Make HasRows report whether rows exist - #1288

Open
alaricd wants to merge 1 commit into
FirebirdSQL:masterfrom
pengdows:fix/has-rows-contract
Open

alaricd wants to merge 1 commit into
FirebirdSQL:masterfrom
pengdows:fix/has-rows-contract

Conversation

@alaricd

@alaricd alaricd commented Oct 20, 2026 •

Copy link
Copy Markdown

Fixes #1284.

HasRows now peeks one row before the first read and returns that buffered row from Read/ReadAsync, while empty, closed, schema-only, and fieldless results remain false. Adds regression tests for empty results and first-row preservation.

Found by the pengdows ADO.NET conformance suite.

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.

Make FbDataReader.HasRows report whether rows exist

1 participant