Joongi Kim - 2009-04-22

I've found a solution for this problem by inspecting the source code of php sybase module which worked fine on the same machine.

In the code of class Cursor: def prepare, just disable using ct_cursor for select queries.
I don't know why, but maybe there are some compatibility issues with different versions of Sybase server.

Refer http://python.kr/viewtopic.php?t=24955 for details.