X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A79F8D84A9 for ; Wed, 31 Aug 2005 08:35:04 -0300 (ADT) 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 10868-01 for ; Wed, 31 Aug 2005 11:35:02 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by svr1.postgresql.org (Postfix) with ESMTP id D3981D84A6 for ; Wed, 31 Aug 2005 08:34:59 -0300 (ADT) Received: by zproxy.gmail.com with SMTP id z6so913817nzd for ; Wed, 31 Aug 2005 04:35:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DBAL4fCYCSe8MBjo/FBJxB6fEkacqHGcVk91NRRrIQtaRcU8c4m6KbdxIvfF2jGNMv89MaWzoJV7WZc7Z3P4GqiXcH3wYs0Cba4FKIB/XPwJYO9cqEUBH5l3YKJoJAg26D6HejUGddgJ7RV3D19HlIf+psAxmkvc801lt4ovSiQ= Received: by 10.36.119.11 with SMTP id r11mr281116nzc; Wed, 31 Aug 2005 04:35:03 -0700 (PDT) Received: by 10.36.247.45 with HTTP; Wed, 31 Aug 2005 04:35:03 -0700 (PDT) Message-ID: Date: Wed, 31 Aug 2005 08:35:03 -0300 From: Cleber Nardelli To: pgsql-odbc@postgresql.org Subject: Re: [Fwd: Re: Transactions and SavePoints] In-Reply-To: <43152657.1090806@kolumbus.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43152657.1090806@kolumbus.fi> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.065 required=5 tests=[AWL=0.041, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/242 X-Sequence-Number: 5881 OK. =20 Then I have two questions: =20 1 - They exist plain of implantation of the SAVEPOINTS in psqlODBC? =20 2 - If not to exist or is for long stated period, would exist an alternative for this problem through other driver ODBC that you can indicate me? Yours truly Cleber Nardelli 2005/8/31, Marko Ristola : >=20 > I sent this off list, so I send this into this list also. >=20 > Marko Ristola >=20 >=20 >=20 >=20 > ---------- Mensagem encaminhada ---------- > From: Marko Ristola > To: Cleber Nardelli > Date: Wed, 31 Aug 2005 06:37:39 +0300 > Subject: Re: [ODBC] Transactions and SavePoints >=20 > Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet. >=20 > ROLLBACK TO SAVEPOINT -case is easy to fix, but the full > implementation is hard to make correctly for psqlodbc, at least for me. >=20 > Marko Ristola >=20 > Cleber Nardelli wrote: >=20 > >Hello. > >I am using the Driver odbc for access to postgresql. > >I have a referring problem to the cancellation of the transaction when > >some error > >is found at the moment of the execution of the same one. > >I try to execute this sql command: > > > >BEGIN TRANSACTION; > > DELETE FROM TABL1 WHERE ID =3D 1; > > INSERT INTO TABL1 VALUES (1,1); > > SAVEPOINT SVPT; > > INSERT INTO TABL1 VALUES (1,1); > > ROLLBACK TO SAVEPOINT SPVT; > >COMMIT; > > > >When I try to insert as register it accuses to error with key duplicate.= Ok. > >But I do not want to cancel the transaction I I need to only continue > >with the same one skirting this error. For this reason I am using > >SavePoints but it generates the error: > >"ERROR: ROLLBACK TO SAVEPOINT may only be used in transaction blocks" > > > >Necessary of the your help. > >I thank > > > >Yours truly > > > > > > >=20 >=20 >=20 >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >=20 >=20 >=20 --=20 Cleber Nardelli IPM Automa=E7=E3o e Consultoria 9998-8670