[python-sybase] cursor.rowcount broken?
Alex Suzuki
as at cynox.ch
Thu, 29 Jul 2004 14:40:30 +0200
Hi list,
I'm using version 0.36 of the Sybase module, linked against Sybase OCS
libraries.
I want to use the cursor.rowcount value, but it always seems to return -1, did I
understand something wrong?
>>> db = Sybase.connect("XXX", "XXX", "XXX")
>>> c = db.cursor()
>>> c.execute("select * from pers")
>>> print c.rowcount
-1
>>> print len(c.fetchall())
7
>>> c.close()
>>> db.close()
INSERT statements do not set rowcount correctly either. Can someone help?
Regards, Alex
--
Alex Suzuki | as@cynox.ch | http://n.ethz.ch/student/asuzuki/
"Computer Science is no more about computers than astronomy
is about telescopes." - E.W.Dijkstra