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 45B8F8B9F33 for ; Tue, 8 Feb 2005 14:33:51 +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 18803-07 for ; Tue, 8 Feb 2005 14:33:38 +0000 (GMT) Received: from web53509.mail.yahoo.com (web53509.mail.yahoo.com [206.190.37.70]) by svr1.postgresql.org (Postfix) with SMTP id CADE18B9F2D for ; Tue, 8 Feb 2005 14:33:39 +0000 (GMT) Received: (qmail 31404 invoked by uid 60001); 8 Feb 2005 14:33:39 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=vo/naRbsZ5V0VJUIxH3zfugZ7UJOnG4bZW+9qiUEXNuNf72iW+zdS8vmob67rHbZjwdFzGI/6c3u5I+TE3Evo90uvcAPNte9LYs5lwMdmoOx/hi6qU0Qo94diuPLFa0iEhz10QqOtBFAjZHUx7u9Ca+7FJDrOaIBsVFaYap6i4E= ; Message-ID: <20050208143339.31402.qmail@web53509.mail.yahoo.com> Received: from [67.164.165.39] by web53509.mail.yahoo.com via HTTP; Tue, 08 Feb 2005 06:33:39 PST Date: Tue, 8 Feb 2005 06:33:39 -0800 (PST) From: Tommy Phillips Reply-To: tommyp@acm.org Subject: Re: Transactions and Savepoints To: Stefan Sturm , pgsql-php@postgresql.org In-Reply-To: <4208BF6A.9040204@anrath.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.855 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, INFO_TLD X-Spam-Level: X-Archive-Number: 200502/12 X-Sequence-Number: 2986 Stefan- We will need more information: What DBMS are you using, what version and what version of PHP, for starters. --- Stefan Sturm wrote: > 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 > > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > ===== --------------------------- Tommy Phillips 303-427-8456 (Home) 303-981-4310 (Cell) tommyp@acm.org