Skip to content

fetchall and fetchmany will returns empty list with no rows#1028

Merged
bimalkjha merged 1 commit intoibmdb:masterfrom
bchoudhary6415:ibmdb_branch
Sep 11, 2025
Merged

fetchall and fetchmany will returns empty list with no rows#1028
bimalkjha merged 1 commit intoibmdb:masterfrom
bchoudhary6415:ibmdb_branch

Conversation

@bchoudhary6415
Copy link
Collaborator

When there will be and empty table than
fetchall and fetchmany will return empty list instead of None object.
and fetchone will return None.
it's as per the Python Database API Specification v2.0 standard.

Signed-off-by: Balram Choudhary <bchoudhary@rocketsoftware.com>
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.

2 participants