dailey007 / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

"Program type out of range" for decimals with precision=18 #291

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. select a decimal with precision 18 where value=null

What is the expected output? What do you see instead?
It should return valid data. Instead it throws an error:
pyodbc.Error: ('HY003', '[HY003] [FreeTDS][SQL Server]Program type out of range 
(0) (SQLGetData)')

What version of the product are you using? On what operating system?
RHEL 5.5, pyodbc 3.0.3 and 3.0.6 against python 2.7 and freetds-0.91 or 
/home/mprice/freetds-dev.0.92.405.  

Please provide any additional information below.
If the field is non-null, there is no issue.

I will be happy to provide any other data you would like, I don't see any 
discussion of standard outputs that should be included

Original issue reported on code.google.com by markpr...@gmail.com on 18 Oct 2012 at 2:21