logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: get_transaction_status: msg#00061

Subject: Re: get_transaction_status
On Thu, Apr 26, 2007 at 12:18:13PM +0400, David Rushby wrote:
> On 4/26/07, Federico Di Gregorio 
> <fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx> wrote:
> > Btw, does anybody uses the ".status" connection attribute? It exposes
> > the internal connection status (client-side) but now that we have the
> > new method is pretty useless and I'd like to remove it in a future
> > release, to avoid confusion.
> 
> I use .status, but it's not really adequate for my purposes, because
> although I can determine whether there is an active transaction, I
> can't determine whether it has encountered an error and is being
> aborted.  Currently, I just have to try to perform the cleanup SQL
> statements, catch ProgrammingError, and examine the included error
> message to see if there transaction is being aborted.

So get_transaction_status should be good for you.

federico


<Prev in Thread] Current Thread [Next in Thread>