Skip site navigation (1) Skip section navigation (2)

[ psqlodbc-Bugs-1000624 ] TransactionScope using{...} block throws exception in .NET 2

From: <noreply(at)pgfoundry(dot)org>
To: noreply(at)pgfoundry(dot)org
Subject: [ psqlodbc-Bugs-1000624 ] TransactionScope using{...} block throws exception in .NET 2
Date: 2006-05-03 03:14:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
Bugs item #1000624, was opened at 2006-05-03 03:13
You can respond by visiting:

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:
psqlodbc version 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);

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.



You can respond by visiting:

pgsql-odbc by date

Next:From: noreplyDate: 2006-05-03 07:01:17
Subject: [ psqlodbc-Bugs-1000625 ] Serious performance issue with Delphi
Previous:From: Hendrik KochDate: 2006-05-02 22:04:58
Subject: Mac OS X ODBC Driver - compile errors - need help

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group