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

[6.0b1] OverflowError: Python int too large to convert to C long #18

Closed
felixxm opened this issue Apr 30, 2017 · 1 comment
Closed

[6.0b1] OverflowError: Python int too large to convert to C long #18

felixxm opened this issue Apr 30, 2017 · 1 comment
Labels

Comments

@felixxm
Copy link

felixxm commented Apr 30, 2017

I think that there is regression in cx_Oracle==6.0b1. Passing number with 19 9's i.e. 9999999999999999999 to the cursor fails with OverflowError: Python int too large to convert to C long (18 9's works). Please find below regression test that fails in cx_Oracle==6.0b1 and works in cx_Oracle==5.3:

import cx_Oracle
connection = cx_Oracle.connect("user", "password", "TNS")
cursor = connection.cursor()
cursor.execute("select :arg0 from dual", {':arg0': -9999999999999999999})
  • Python 3.4.3 (64-bit)
@anthony-tuininga
Copy link
Member

I have verified that this is in fact a regression. A bug fix and an addition to the test suite will be coming shortly. Thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants