Re: Obscure MySQLdb question - duplicating a database handle

2010-09-02 Thread Lawrence D'Oliveiro
In message <4c801218$0$1622$742ec...@news.sonic.net>, John Nagle wrote: > The problem is that I want errorlog to commit its message to > the table used for error logging, but don't want to commit > whatever the caller was doing - that may well revert. Any particular reason you’re using a database

Re: Obscure MySQLdb question - duplicating a database handle

2010-09-02 Thread John Bokma
John Nagle writes: > I have a system which does error logging to its database: > > db = MySQLdb.connect(...) # get database connection > ... > errorlog(db, "Message") > > The problem is that I want errorlog to commit its message to > the table used for error logging, but don't

Obscure MySQLdb question - duplicating a database handle

2010-09-02 Thread John Nagle
I have a system which does error logging to its database: db = MySQLdb.connect(...) # get database connection ... errorlog(db, "Message") The problem is that I want errorlog to commit its message to the table used for error logging, but don't want to commit whatever the