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 836169FA9BD for ; Wed, 3 May 2006 00:14:17 -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 62671-04 for ; Wed, 3 May 2006 00:14:10 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 4695A9FA2C7 for ; Wed, 3 May 2006 00:14:10 -0300 (ADT) Received: from localhost (mx1.hub.org [200.46.208.251]) by pgfoundry.org (Postfix) with ESMTP id 8DDD186C51D; Wed, 3 May 2006 03:14:09 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 64414-02; Wed, 3 May 2006 00:14:02 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id 1F5D986C51E; Wed, 3 May 2006 03:14:02 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000624 ] TransactionScope using{...} block throws exception in .NET 2 Content-type: text/plain; charset=UTF-8 Message-Id: <20060503031402.1F5D986C51E@pgfoundry.org> Date: Wed, 3 May 2006 03:14:02 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/2 X-Sequence-Number: 7673 Bugs item #1000624, was opened at 2006-05-03 03:13 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000624&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Patrick Donelan (patspam) Assigned to: Nobody (None) Summary: TransactionScope using{...} block throws exception in .NET 2 Initial Comment: Summary: -------- psqlodbc version 8.02.00.02 throws an exception when trying to use System.Transactions.TransactionScope to manage transactions. How to reproduce: ----------------- The following code: using System.Transactions; using System.Data.Odbc; using (TransactionScope ts = new TransactionScope()) { OdbcConnection cnDB = new OdbcConnection(builder.ConnectionString); cnDB.Open(); } Throws: ERROR [HY000] Unsupported connect attribute (Set) My psqlodbc log is attached. Detailed Information: --------------------- From MSDN: The TransactionScope class provides a simple way to mark a block of code as participating in a transaction, without requiring you to interact with the transaction itself. A transaction scope can select and manage the ambient transaction automatically. Due to its ease of use and efficiency, it is recommended that you use the TransactionScope class when developing a transaction application. In addition, you do not need to enlist resources explicitly with the transaction. Any System.Transactions resource manager (such as SQL Server 2005) can detect the existence of an ambient transaction created by the scope and automatically enlist. (ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxtransactions/html/1ddba95e-7587-48b2-8838-708c275e7199.htm) ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000624&group_id=1000125