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

felixxm opened this Issue Apr 30, 2017 · 1 comment


None yet
2 participants
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 anthony-tuininga added the bug label May 3, 2017


This comment has been minimized.

Copy link

anthony-tuininga commented May 3, 2017

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