| Issue 212: | core dump, pyodbc + Fedora + UnixODBC 2.3.0 + FreeTDS 0.91, odbc + freetds logs attached | |
| 1 person starred this issue and may be notified of changes. | Back to list |
pyodbc 2.1.11
Fedora Release 14
UnixODBC 2.3.0 built from source
FreeTDS 0.91 built from source
Passing a Python unicode as a bind crashes. This is in conflict with one of my users who insists that we pass Python unicode as binds.
import pyodbc
conn = pyodbc.connect("dsn=ms_2005;UID=scott;PWD=tiger")
cursor = conn.cursor()
cursor.execute("SELECT cast(? AS NVARCHAR)", ('abcdef'))
print cursor.fetchall()
cursor.execute("SELECT cast(? AS NVARCHAR)", (u'abcdef'))
print cursor.fetchall()
ODBC log + FreeTDS log is attached. Full output is attached, starts with:
[classic@f1 sqlalchemy]$ python test.py
[(u'abcdef', )]
*** glibc detected *** python: free(): invalid next size (fast): 0x08508720 ***
Sep 18, 2011
#1
zzz...@gmail.com
Nov 2, 2011
(No comment was entered for this change.)
Status:
Investigating
Labels: FreeTDS
Dec 18, 2011
Fixed in 3.0.x versions. Added unit tests to 3.0.2-beta04
Status:
Complete
|