pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1000624 ] TransactionScope using{...} block throws exception in .NET 2
Date: Wed,  3 May 2006 03:14:02 +0000 (UTC)
Message-ID: <20060503031402.1F5D986C51E@pgfoundry.org> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <20060503031402.1F5D986C51E@pgfoundry.org>
Permalink:  ../20060503031402.1F5D986C51E@pgfoundry.org/
Also on:    postgresql.org/message-id/20060503031402.1F5D986C51E@pgfoundry.org

 · 

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: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1000624 ] TransactionScope using{...} block throws exception in .NET 2
  In-Reply-To: <20060503031402.1F5D986C51E@pgfoundry.org>
  References: <20060503031402.1F5D986C51E@pgfoundry.org>

* 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