From: Alex S. <ale...@gm...> - 2004-07-30 06:42:46
|
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...@cy... | http://n.ethz.ch/student/asuzuki/ "Computer Science is no more about computers than astronomy is about telescopes." - E.W.Dijkstra |