Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4

Поиск
Список
Период
Сортировка
От Martin Marques
Тема Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4
Дата
Msg-id 200312112136.43688.martin@bugs.unl.edu.ar
обсуждение исходный текст
Ответ на Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4  (Robert Treat <xzilla@users.sourceforge.net>)
Ответы Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4  (Martin Marques <martin@bugs.unl.edu.ar>)
Список pgsql-php
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
-----------------------------------------------------------------


В списке pgsql-php по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4
Следующее
От: Martin Marques
Дата:
Сообщение: Re: [ADMIN] PHP and autocommit of PostgreSQL 7.4