pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sla-net <slambert@vediovis.net>
To: pgsql-php@postgresql.org
Subject: concatenation = = transaction ?????
Date: Tue, 12 Aug 2003 17:59:17 +0200
Message-ID: <002d01c360ea$af623ad0$010aa8c0@SESAMEVEDIOVIS> (raw)
References: <20030812153118.6D87072E999@svr5.postgresql.org>

Hi everybody

It's my first post here, so be indulgent ;)

Just to confirm :  if i do

$sql1='insert into "Enfant"  ("NomEnfant","PrenomEnfant") VALUES
('.$NomEnfant.','.$PrenomEnfant.')

$sql2='insert into "IndividuEnfant" ("IdIndividu","IdEnfant") VALUES
('.$IdIndividu.',currval(\'"Enfant_Seq"\'));

$sql=$sql1.$sql2;

$Res=pg_query($sql);

so 2 query concatenation a a only one, send to postgress database : is it
EXACTLY the same thing than a classic transaction with a begin and a commit
or rollback  ?

Tcks, it's just i dont want to write everything again in 6 months.....

S.L.

PS : why limitation to 8 patrameters in stored procedures ??????




view thread (4+ messages)  latest in thread

Message-ID: <002d01c360ea$af623ad0$010aa8c0@SESAMEVEDIOVIS>
Permalink:  ../002d01c360ea$af623ad0$010aa8c0@SESAMEVEDIOVIS/
Also on:    postgresql.org/message-id/002d01c360ea$af623ad0$010aa8c0@SESAMEVEDIOVIS

 · 

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: slambert@vediovis.net
  Subject: Re: concatenation = = transaction ?????
  In-Reply-To: <002d01c360ea$af623ad0$010aa8c0@SESAMEVEDIOVIS>
  References: <20030812153118.6D87072E999@svr5.postgresql.org> <002d01c360ea$af623ad0$010aa8c0@SESAMEVEDIOVIS>

* 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