concatenation = = transaction ?????

From: "sla-net" <slambert(at)vediovis(dot)net>
To: <pgsql-php(at)postgresql(dot)org>
Subject: concatenation = = transaction ?????
Date: 2003-08-12 15:59:17
Message-ID: 002d01c360ea$af623ad0$010aa8c0@SESAMEVEDIOVIS
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-php

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 ??????

Responses

Browse pgsql-php by date

  From Date Subject
Next Message sla-net 2003-08-12 16:15:03 Re: concatenation = = transaction ?????
Previous Message Gerd Terlutter 2003-08-12 07:15:37 Re: Paging results