[Twisted-Python] adapi.Connection._runQuery always does rollback()

Dave Peticolas dave at krondo.com
Sat Apr 26 16:49:06 EDT 2003

On Sat, 2003-04-26 at 10:33, Federico Di Gregorio wrote:
> Il sab, 2003-04-26 alle 15:55, Eric C. Newton ha scritto:
> > not understand the logic of always running a rollback even if the
> > query is successful.  I would, instead, expect this:
> i introduced such buglet but i thought it was fixed (see discussion on
> this list some weeks ago). 

I meant to, but I guess I never did -- I'll do that now.

To summarize the discussion, you need to commit, not rollback,
as it's possible for select calls to have side effects. One example
is calling a stored procedure.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030426/03171834/attachment.pgp 

More information about the Twisted-Python mailing list