pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlos Henrique Reimer <carlosreimer@yahoo.com.br>
To: pgsql-odbc@postgresql.org
Subject: Re: Transactions and SavePoints
Date: Wed, 31 Aug 2005 08:57:35 -0300 (ART)
Message-ID: <20050831115735.91661.qmail@web53206.mail.yahoo.com> (raw)

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!

view thread (11+ messages)  latest in thread

Message-ID: <20050831115735.91661.qmail@web53206.mail.yahoo.com>
Permalink:  ../20050831115735.91661.qmail@web53206.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050831115735.91661.qmail@web53206.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: carlosreimer@yahoo.com.br
  Subject: Re: Transactions and SavePoints
  In-Reply-To: <20050831115735.91661.qmail@web53206.mail.yahoo.com>
  References: <20050831115735.91661.qmail@web53206.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox