[TransWarp] Whoops...

Phillip J. Eby pje at telecommunity.com
Wed Jan 15 08:32:18 EST 2003


At 04:34 PM 1/14/03 -0500, Phillip J. Eby wrote:

>self.DBConn(sql)
>self.DBConn.joinTxn()
>
>or:
>
>self.DBConn(sql)
>self.DBConn.joinedTxn


Whoops.  The above are incorrect.  They should read:

self.DBConn.joinTxn()
self.DBConn(sql)

or:

self.DBConn.joinedTxn
self.DBConn(sql)

Otherwise, the SQL would be executed outside the transaction.  Sorry about 
that.  Anyway, it's easiest to use:

self.DBConn(sql, joinTxn=True)

which joins the transaction before executing the SQL.




More information about the PEAK mailing list