Open GoogleCodeExporter opened 9 years ago
Hi,
If I use
conn = pyodbc.connect('DSN=SQLServer;UID=user;PWD=pass',unicode_results=True)
when I do
rows = cursor.fetchall()
I get
pyodbc.Error: ('HY003', '[HY003] [FreeTDS][SQL Server]Program type out of range
(0) (SQLGetData)')
Alberto
Original comment by alberto....@gmail.com
on 19 Oct 2012 at 12:02
pyodbc 2.1.8 does not have this problem.
We recently upgraded to Debian squeeze and installed latest pyodbc.
I don't have any international character encoding other then what is default
for US standard SQL version.
>>> cnxn=pyodbc.connect("DSN=SQLServer2008;UID=xxxx;PWD=xxxx")
>>> cursor = cnxn.cursor()
>>> cursor.execute('assp_ReturnChecks @begin_date="11/21/2012",
@end_date="11/21/2012"')
<pyodbc.Cursor object at 0x25388d0>
>>> a=cursor.fetchall()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
pyodbc.Error: ('HY003', '[HY003] [FreeTDS][SQL Server]Program type out of range
(0) (SQLGetData)')
While looking for a solution I found this, but I'm not sure if that actually is
the solution. For now I'm reverting back to pyodbc 2.1.8 to fix this problem.
IF you could let me know which version this will be fixed in, and which were
affected I would greatly appreciate it.
https://github.com/mkleehammer/pyodbc/commit/6ded8a8397e7d0692fe522ac2140e5d41d1
d22c6
Original comment by szybal...@gmail.com
on 26 Nov 2012 at 8:18
Original issue reported on code.google.com by
alberto....@gmail.com
on 19 Oct 2012 at 9:25