pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Marques <martin@bugs.unl.edu.ar>
To: John DeSoi <desoi@pgedit.com>
Cc: mikie <mikie.pl@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: transactions from PHP - double COMMIT required?
Date: Thu, 01 Mar 2007 11:48:43 -0300
Message-ID: <45E6E7CB.3060800@bugs.unl.edu.ar> (raw)
In-Reply-To: <59D024F7-8F90-4FD0-B8A9-A58C85CC014F@pgedit.com>
References: <ca35ce500703010306nd06dcfcy1247fb2b4297b0c2@mail.gmail.com>
	<20070301131523.fgfm83nb9y2kgo4c@imp3.uta.fi>
	<ca35ce500703010329j329b8a5h6ee8958ddb6711e0@mail.gmail.com>
	<e0b20d410703010418m3f931527wb2e81e3f3ab0c9f4@mail.gmail.com>
	<ca35ce500703010445n67ca6714id0b10b393859f8e0@mail.gmail.com>
	<59D024F7-8F90-4FD0-B8A9-A58C85CC014F@pgedit.com>

John DeSoi wrote:
> The client must issue a command to commit or rollback the transaction.
> 
> In your example, are you sending all of the SQL lines (including the 
> COMMIT) as a single execution? It sounds like the interface stops 
> executing as soon as an error is reached. So perhaps change your code to 
> execute the COMMIT separately after all the other commands have executed.

Logs would also help.

-- 
  21:50:04 up 2 days,  9:07,  0 users,  load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' ||
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador,
     del Litoral             |   Administrador
---------------------------------------------------------



view thread (23+ messages)  latest in thread

Message-ID: <45E6E7CB.3060800@bugs.unl.edu.ar>
Permalink:  ../45E6E7CB.3060800@bugs.unl.edu.ar/
Also on:    postgresql.org/message-id/45E6E7CB.3060800@bugs.unl.edu.ar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: martin@bugs.unl.edu.ar, desoi@pgedit.com, mikie.pl@gmail.com
  Subject: Re: transactions from PHP - double COMMIT required?
  In-Reply-To: <45E6E7CB.3060800@bugs.unl.edu.ar>
  References: <ca35ce500703010306nd06dcfcy1247fb2b4297b0c2@mail.gmail.com> <20070301131523.fgfm83nb9y2kgo4c@imp3.uta.fi> <ca35ce500703010329j329b8a5h6ee8958ddb6711e0@mail.gmail.com> <e0b20d410703010418m3f931527wb2e81e3f3ab0c9f4@mail.gmail.com> <ca35ce500703010445n67ca6714id0b10b393859f8e0@mail.gmail.com> <59D024F7-8F90-4FD0-B8A9-A58C85CC014F@pgedit.com> <45E6E7CB.3060800@bugs.unl.edu.ar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox