X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1F5A69FA5E1 for ; Wed, 31 May 2006 18:05:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77147-07 for ; Wed, 31 May 2006 18:05:50 -0300 (ADT) X-Greylist: delayed 00:26:19.007982 by SQLgrey- Received: from paulista.softwareexpress.com.br (200-171-213-106.softwareexpress.com.br [200.171.213.106]) by postgresql.org (Postfix) with ESMTP id 016899FA6B0 for ; Wed, 31 May 2006 18:05:49 -0300 (ADT) Received: from MRENATO (unknown [192.168.53.60]) by paulista.softwareexpress.com.br (Postfix) with ESMTP id 3C01628582 for ; Wed, 31 May 2006 17:41:17 -0300 (BRT) Reply-To: From: "Renato Gondim" To: Subject: Meaning of Level of rollback on errors Date: Wed, 31 May 2006 17:39:18 -0300 Organization: =?us-ascii?Q?Software_Express_Informatica_Ltda.?= Message-ID: <001001c684f2$4a37a2b0$3c35a8c0@MRENATO> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C684D9.24EF25A0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-SoftwareExpressLinux-MailScanner-Information: Please contact the ISP for more information X-SoftwareExpressLinux-MailScanner: Found to be clean X-MailScanner-From: renato.gondim@softwareexpress.com.br X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=BAYES_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200605/76 X-Sequence-Number: 7747 This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C684D9.24EF25A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi folks, I've just faced a situation here at work. Our application runs on = Oracle, SqlServer, Sybase and PostGreSql. The problem was when a primary key violation occurs: after the error, the application tries to find the register, but if the ODBC is configured as "Transaction" on "Level of rollback on errors", nothing is returned from the select. After a = research, I found out that I must use "Statement" , but I'd like to know what = happen when this configuration is set, because the application must start / = finish the transaction. I'm tried "Nop: don't rollback anything", cause make = more sense for me: don't do anything, let the application control the transactions, but using it, the application can't continue and make more statements. Because I don't like to use something that I don't know, please, does anybody have more information about the configurations of "Level of = rollback on errors"? =20 Thanks, Renato.=20 =20 ------=_NextPart_000_0011_01C684D9.24EF25A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi folks,

I’ve just faced a situation = here at work. Our application runs on Oracle, SqlServer, Sybase and PostGreSql. = The problem was when a primary key violation occurs: after the error, the application tries to find the register, but if the ODBC is configured as = “Transaction” on “Level of rollback on errors”, nothing is returned from = the select. After a research, I found out that I must use = “Statement” , but I’d like to know what happen when this configuration is set, = because the application must start / finish the transaction. I’m tried = “Nop: don’t rollback anything”, cause make more sense for me: = don’t do anything, let the application control the transactions, but using it, = the application can’t continue and make more = statements.

Because I don’t like to use something that I don’t know, please, does anybody have more = information about the configurations of “Level of rollback on = errors”?

 

Thanks,

Renato.

 

------=_NextPart_000_0011_01C684D9.24EF25A0--