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

Federico Di Gregorio fog at initd.org
Sat Apr 26 15:22:06 MDT 2003


Il sab, 2003-04-26 alle 22:49, Dave Peticolas ha scritto:
> 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.

exactly.

federico

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030426/a6ac5660/attachment.sig>


More information about the Twisted-Python mailing list