| От | Jules Bean |
|---|---|
| Тема | Re: problems with transactions |
| Дата | |
| Msg-id | 20000831144107.N24680@grommit.office.vi.net обсуждение исходный текст |
| Ответ на | problems with transactions ("Campbell, Scott" <scampbell1@mtt.ca>) |
| Список | pgsql-general |
On Thu, Aug 31, 2000 at 09:43:52AM -0300, Campbell, Scott wrote:
>
> $sth = $dbh->prepare("begin work");
> $sth->execute();
>
[snip error]
>
> after seeing this I assumed that you just can't use the begin statement
> accross the DBI but there has to be a way of opening a transaction (it even
> says so in the error I got) ... I'm just not sure how.
>
> can someone please shed some light on this... I've looked through the
> archives but didn't find anything constructive.
man DBI
Look for the section on AutoCommit, and the section on Transactions
will also be useful. One sentence summary: Make sure autocommit is
off, transactions are begun automatically, and ended with commit or
rollback.
Jules
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера