X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E6D438B9EE6 for ; Tue, 8 Feb 2005 13:32:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14419-01 for ; Tue, 8 Feb 2005 13:32:16 +0000 (GMT) Received: from mail.stefansturm.de (p15166448.pureserver.info [212.227.21.35]) by svr1.postgresql.org (Postfix) with ESMTP id 6CA098B9EBE for ; Tue, 8 Feb 2005 13:32:18 +0000 (GMT) Received: (qmail 3444 invoked by uid 1008); 8 Feb 2005 13:32:16 -0000 Received: from unknown (HELO ?127.0.0.1?) (info@stefansturm.de@217.84.8.74) by 0 with SMTP; 8 Feb 2005 13:32:16 -0000 Message-ID: <4208BF6A.9040204@anrath.info> Date: Tue, 08 Feb 2005 14:32:26 +0100 From: Stefan Sturm User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: pgsql-php@postgresql.org Subject: Transactions and Savepoints Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/11 X-Sequence-Number: 2985 Hello, I have a problem with savepoints. I have a function which does some DB changed. This changes have to be in a single Transaction. This function is now called in two different ways. Once within a transaction and once not in a transaction. But how can i check if I am within a transaction, so I can start a new transaction or set a savepoint. Is there a way to check this? Thanks and Greetings, Stefan Sturm