Menu

#28 db.execute does not return values

open
nobody
None
5
2009-06-19
2009-06-19
nobdy
No

0.39/svn, on Linux against Sybase 12.5

The db.execute statement did return the result of a select statement in 0.38. This seems not to be true anymore for the 0.39 and the svn versions.

db=Sybase.connect(database, user, password)
result = db.execute('select count(*) from syscolumns')

(None in 0.39/svn, the number of rows in 0.38)

Having this functionality back would be very helpfull as then the problem of Bug 2809006 could be circumvented by doing within a transaction

db.execute('update table ...')
result = db.execute('select @@rowcount set parallel_degree 1')
print result[0]

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.