Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cx_Oracle 6.0.1 Seems to Retrieve Wrong Values for Large Numbers (> 10 digits) #70
I am using cx_Oracle to query a table with a 10 digit and larger numbers used as keys. When pulled into Python they are being somehow corrupted. The original database column is defined as Number(16). In the test below 9 digit and some 10 digit numbers will be correctly queried. Numbers with 11 or more digits are not correctly queried. The 10 digit number 1234567890 is correctly queried, the larger number 2234567890 is not. I have checked in the database and the numbers are being correctly inserted.
For the time being I am converting the number to_char.
I've tried to make the example similar to a test case, although I'm not exactly sure what you need for that.
The results are:
Answer the following questions:
added a commit
Aug 23, 2017
I'm using version 6.2.1 and looks like this problem still exists.
Answer some questions:
What is your version of cx_Oracle? 6.2.1
What is your version of the Oracle client (e.g. Instant Client)? How was it
What is your OS and version? Windows 10 Pro