From: Martin Marques <martin@bugs.unl.edu.ar>
To: Robert Treat <xzilla@users.sourceforge.net>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: aspire420@hotpop.com, Sai Hertz And Control Systems <sank89@sancharnet.in>
Cc: pgsql-php@postgresql.org
Subject: Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4
Date: Thu, 11 Dec 2003 21:36:43 -0300
Message-ID: <200312112136.43688.martin@bugs.unl.edu.ar> (raw)
In-Reply-To: <1071185106.1792.8265.camel@camel>
References: <3FD8E2C0.5060803@sancharnet.in>
<200312112317.59269.peter_e@gmx.net>
<1071185106.1792.8265.camel@camel>
El Jue 11 Dic 2003 20:25, Robert Treat escribió:
>
> (personally i'm down with Scott, application developers should just use
> begin/commit, but i've met some folks who really look at it the other
> way)
$db = DB::Connect("pgsql://user:pass@host/db");
$db->autocommit(false);
$db->query(query1);
$db->query(query2);
$db->commit();
Changing the first line would make it work on Oracle, or Informix. :-)
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telemática
Universidad Nacional
del Litoral
-----------------------------------------------------------------
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, xzilla@users.sourceforge.net, peter_e@gmx.net, sank89@sancharnet.in
Subject: Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4
In-Reply-To: <200312112136.43688.martin@bugs.unl.edu.ar>
References: <3FD8E2C0.5060803@sancharnet.in> <200312112317.59269.peter_e@gmx.net> <1071185106.1792.8265.camel@camel> <200312112136.43688.martin@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