3 Jun 02:49
mx.odbc segmentation fault on fetching string
From: Wouter van Atteveldt <wouter@...>
Subject: mx.odbc segmentation fault on fetching string
Newsgroups: gmane.comp.python.egenix.user
Date: 2008-06-03 00:49:58 GMT
Subject: mx.odbc segmentation fault on fetching string
Newsgroups: gmane.comp.python.egenix.user
Date: 2008-06-03 00:49:58 GMT
Dear list,
I am evaluating mx.odbc for connecting to a MS SQL server from my Linux machine using freetds 0.82. I can
connect and query using isql without problem, but I get a segmentation fault if I fetch using the mx.odbc interface.
wva <at> amcat:~/tmp$ isql -v AmcatDB <UID> <PWD>
+---------------------------------------+
| Connected!
[...]
+---------------------------------------+
SQL> select top 1 projectid, name from projects
[...]
| 1 | test
[...]
SQLRowCount returns 1
1 rows fetched
wva <at> amcat:~/tmp$ python testodbc.py
connected to Microsoft SQL Server 08.00.2039
Executed, fetching...
[(1,)]
Executed, fetching...
Segmentation fault
wva <at> amcat:~/tmp$ cat testodbc.py
import mx.ODBC
db = mx.ODBC.unixODBC.connect("AmcatDB", "<UID>", "<PWD>")
print "connected to %s %s" % (db.dbms_name, db.dbms_version)
c = db.cursor()
c.executedirect("select top 1 projectid from projects")
(Continue reading)
RSS Feed