[Twisted-Python] adapi.Connection._runQuery always does rollback()
Eric C. Newton
ecn at metaslash.com
Sat Apr 26 13:12:29 EDT 2003
> But, looks like we do need to deal with broken rollback support in
> mysql. Is there any flag we can check, or must we trap AttributeError
> and whatever mysql throws on rollback() calls?
I checked. It's AttributeError.
try:
conn.rollback()
except AttributeError: # Grr.. MySQL without rollback support
pass
-Eric
More information about the Twisted-Python
mailing list