Re: A transaction in transaction? Possible?

From: Theodore Petrosky <tedpet5(at)yahoo(dot)com>
To: Andrei Bintintan <klodoma(at)ar-sd(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: A transaction in transaction? Possible?
Date: 2004-11-09 15:24:57
Message-ID: 20041109152458.51487.qmail@web41007.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I thought nested transactions are available in the new
release (8) coming up.

Ted

--- Andrei Bintintan <klodoma(at)ar-sd(dot)net> wrote:

> Is it possible to have another transatction in a
> transaction??? In the following example the last
> ROLLBACK is totally ignored(transaction1).
>
> //connect to database
> $database = dbConnect($dbhost, $dbuser, $dbpass,
> $dbname);
> dbExec($database, "BEGIN"); //transaction1
>
> //*
> dbExec($database, "BEGIN");//transaction2
> $sql = "UPDATE orders SET
> technikernotiz='51' WHERE id=16143";
> dbExec($database, $sql);
> dbExec($database, "COMMIT");//transaction2
> /**/
>
> $sql = "UPDATE orders SET
> reklamationsdetail='51' WHERE id=16143";
> dbExec($database, $sql);
> dbExec($database, "ROLLBACK");//transaction1
>
> dbClose($database);
>
>
>


__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2004-11-09 15:30:25 Re: Drop all indexes of a table w/o knowing the index names
Previous Message Andrei Bintintan 2004-11-09 14:58:27 upper/lower for german characters