how to get return value of update/delete statement

michael lee <[email protected]> Tue, 25 Oct 2005 18:30:07 +0800
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
hi
how can i successfully get the return of an update or delete statement using
the Sybase module?
 i am doing a CGI script whereby if a user keys in the wrong name, i would
want to catch that error
 eg if key in wrong username,
my CGI script will call Sybase to execute < update table set this = a-value
where name = 'wronguser' > and then return a value indicating "not found"
but i am not able to figure out how to catch this return value. Any advise?
 ....
cur.execute(update_statement)
....
 my table is being updated though when i tried a valid user. I tried
rowcount but also not working.
thanks

_______________________________________________
Python-sybase mailing list
[email protected]
https://www.object-craft.com.au/cgi-bin/mailman/listinfo/python-sybase