-
Notifications
You must be signed in to change notification settings - Fork 358
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.rowcount does not reset when executing the same statement a second time #193
Labels
Comments
You are correct. The row count is not being reset for each execute and it should be. I'll have that corrected. |
anthony-tuininga
added a commit
to oracle/odpi
that referenced
this issue
Jun 25, 2018
anthony-tuininga
added a commit
to oracle/odpi
that referenced
this issue
Jun 25, 2018
This issue has been corrected and a test case added to the test suite to ensure it doesn't happen again. Thanks for bringing it to my attention! |
Wow, that's a fast turnaround! Thanks for all the hard work. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The cursor.rowcount attribute seems to increment when running the same query multiple times, when I expected it to reset. Example:
Expected output:
Actual output:
Documentation
PEP 249 suggests the rowcount should reset to zero every time execute() is called:
https://www.python.org/dev/peps/pep-0249/#rowcount
Answer the following questions:
What is your version of Python? Is it 32-bit or 64-bit?
Python 2.6.6, 64-bit
Same behaviour observed on Python 2.7.12, 64-bit
What is your version of cx_Oracle?
6.3
What is your version of the Oracle client (e.g. Instant Client)? How was it
installed? Where is it installed?
Installed via pip, /usr/lib64/python2.6/site-packages/cx_Oracle.so
What is your version of the Oracle Database?
12.1c
What is your OS and version?
RHEL6
The text was updated successfully, but these errors were encountered: