Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursor.fetchmany() should have a default value for size, as per DB-API 2.0 spec #377

Closed
jpz opened this issue Oct 30, 2021 · 0 comments
Closed

Comments

@jpz
Copy link
Contributor

jpz commented Oct 30, 2021

The default value is meant to be cursor.arraysize.

https://www.python.org/dev/peps/pep-0249/#fetchmany

The psycopg implementation here may be of use.

https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/cursor.py#L607-L626

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

No branches or pull requests

2 participants