Re: Transaction control overhauling

From: Federico Di Gregorio <federico(dot)digregorio(at)dndg(dot)it>
To: psycopg(at)postgresql(dot)org
Subject: Re: Transaction control overhauling
Date: 2011-05-12 15:47:41
Message-ID: 4DCC011D.8020808@dndg.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On 12/05/11 17:15, Oswaldo wrote:
[snip]
> Another way is setting transacion mode with predefined constants and
> combining it with '|':
>
> previous_mode = conn.set_transaction(psycppg2.TM_SERIALIZABLE |
> psycppg2.TM_READONLY)

Please don't do that C-ish thing.. Every time you do that a kitten
somewhere dies.

federico

--
Federico Di Gregorio federico(dot)digregorio(at)dndg(dot)it
Studio Associato Di Nunzio e Di Gregorio http://dndg.it
Gli esseri umani, a volte, sono destinati, per il solo fatto di
esistere, a fare del male a qualcuno. -- Haruki Murakami

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Oswaldo 2011-05-12 16:12:16 Re: Transaction control overhauling
Previous Message Oswaldo 2011-05-12 15:15:05 Re: Transaction control overhauling