Trying to run freetds 0.82 my code fails with AttributeError
/usr/lib/python2.5/site-packages/Sybase.py in prepare, line 471:
status = self._cmd.ct_cursor(CS_CURSOR_DECLARE, "ctmp%x" % id(self), sql, CS_UNUSED)
self._cmd does not appear to have ct_cursor.
I built with with command:
SYBASE=/usr CFLAGS="-DHAVE_FREETDS" python setup.py install
0.38 works for me with freetds using the above, on Kubuntu 8.10.
Before getting here I had to manually relink sybasect.so, adding -lct to the link command on a 64 bit linux.