Il giorno lun, 21/01/2008 alle 20.35 +0900, James Henstridge ha scritto:
> MySQL appears to have a special API for performing a one-phase commit
> of an XA transaction:
> 
>     XA COMMIT xid ONE PHASE
> 
> Perhaps an argument to xa_commit() would be appropriate here?
> 
>     connection.xa_commit(onephase=True)
> 
> Without the argument, the commit would be considered to be a
> ProgrammingError.  That would reduce the chance of programmer error
> leading to data corruption.

Lets not make an API that has features useful on a single backend. I
suppose the necessity for a one-phase commit in a two-phase transaction
is rare. A simple API means early adoption by most of the adapters.
> 
federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                [EMAIL PROTECTED]
INIT.D Developer                                           [EMAIL PROTECTED]
  We should forget about small efficiencies, say about 97% of the
   time: premature optimization is the root of all evil.    -- D.E.Knuth

Attachment: signature.asc
Description: Questa รจ una parte del messaggio firmata digitalmente

_______________________________________________
DB-SIG maillist  -  DB-SIG@python.org
http://mail.python.org/mailman/listinfo/db-sig

Reply via email to