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 1D1A4D84E1 for ; Wed, 31 Aug 2005 08:57:37 -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 17143-04 for ; Wed, 31 Aug 2005 11:57:34 +0000 (GMT) Received: from web53206.mail.yahoo.com (web53206.mail.yahoo.com [206.190.49.76]) by svr1.postgresql.org (Postfix) with SMTP id 48987D84D7 for ; Wed, 31 Aug 2005 08:57:32 -0300 (ADT) Received: (qmail 91664 invoked by uid 60001); 31 Aug 2005 11:57:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZozngjTW8c+PTP7XKifOPu6b4klkdXZWOzc8wqATveuZez3HFNdzBq5RHw4xktTZjvfCVAKlQee0rBOlMTKN1BHeKOwH6/wJg0hsgNXr2f+OEYA8nxqpGN3JMcI8g4u4Vrm3ThRxsrecLZofxyfScXXM9I3LaPK6/4IIt74YzBs= ; Message-ID: <20050831115735.91661.qmail@web53206.mail.yahoo.com> Received: from [201.24.119.165] by web53206.mail.yahoo.com via HTTP; Wed, 31 Aug 2005 08:57:35 ART Date: Wed, 31 Aug 2005 08:57:35 -0300 (ART) From: Carlos Henrique Reimer Subject: Re: Transactions and SavePoints To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1141530002-1125489455=:91349" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.086 required=5 tests=[DNS_FROM_RFC_ABUSE=0.374, HTML_20_30=0.504, HTML_MESSAGE=0.001, UPPERCASE_25_50=0.207] X-Spam-Level: * X-Archive-Number: 200508/243 X-Sequence-Number: 5882 --0-1141530002-1125489455=:91349 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT? Marko Ristola wrote: > Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet. > > >ROLLBACK TO SAVEPOINT -case is easy to fix, but the full >implementation is hard to make correctly for psqlodbc, at least for me. > >Marko Ristola > >>Cleber Nardelli wrote: >> >> >>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 = 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 >> --------------------------------- Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! --0-1141530002-1125489455=:91349 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Is there a ODBC flavor than can implement ROLLBACK TO SAVEPOINT?
 
Marko Ristola wrote:
> Unfortunately SAVEPOINTs are not implemented in PsqlODBC yet.
>
>
>ROLLBACK TO SAVEPOINT -case is easy to fix, but the full
>implementation is hard to make correctly for psqlodbc, at least for me.
>
>Marko Ristola
>
>>Cleber Nardelli wrote:
>>
>>
>>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 = 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
>>


Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! --0-1141530002-1125489455=:91349--