Re: transactions from PHP - double COMMIT required? - Mailing list pgsql-php

From mikie
Subject Re: transactions from PHP - double COMMIT required?
Date
Msg-id ca35ce500703050130g46db55f1r23e2ef96fd8b18e7@mail.gmail.com
Whole thread Raw
In response to Re: transactions from PHP - double COMMIT required?  (Martin Marques <martin@bugs.unl.edu.ar>)
Responses Re: transactions from PHP - double COMMIT required?
Re: transactions from PHP - double COMMIT required?
List pgsql-php
2007/3/2, Martin Marques <martin@bugs.unl.edu.ar>:
> mikie wrote:
> > 2007/3/1, Robert Treat <xzilla@users.sourceforge.net>:
> >> Yeah, do the above recommendation to see if all of your statements are
> >> making
> >> thier way into pg
> >
> > OK, I have checked the logs. I can see both COMMIT statements in the
> > log - the first commit from my transaction and then the other that I
> > send to workaround the problem.
>
> There must be some other problem. Do you have trasaction ID on the logs?
> See if both commits go in the same transaction.

Could you please advise me how to check the transaction ID in the log?

> Any errors during the transaction?

As I wrote in my first post, I make this error intentionally to check
if  transaction works (if something fails, then the entire transaction
should be rolled back). I intentionally give wrong data in the "date"
field for example.
Perhaps I should ask again: is it my responsibility to check if the
transaction failed and issue a ROLLBACK command, or will the PG server
do it automatically?

pgsql-php by date:

Previous
From: Martin Marques
Date:
Subject: Re: transactions from PHP - double COMMIT required?
Next
From: Martin Marques
Date:
Subject: Re: transactions from PHP - double COMMIT required?