From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: WARNING: there is already a transaction in progress
Date: Fri, 11 Jul 2014 07:20:48 -0700 (PDT)
Message-ID: <1405088448039-5811288.post@n5.nabble.com> (raw)
In-Reply-To: <CAF3mAgnJy3O0+q0_AgLp0kVPBYR4FUVkv++c1O=8BXJgsjwLmw@mail.gmail.com>
References: <CAF3mAgnJy3O0+q0_AgLp0kVPBYR4FUVkv++c1O=8BXJgsjwLmw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
matevzm wrote
> I am getting error *"WARNING: there is already a transaction in progress"*
> when trying to execute command "*BEGIN TRANSACTION; LOCK TABLE "%s" IN
> EXCLUSIVE MODE;'"*
>
> We have written mutex which is working on other systems to unlock and lock
> database table using pgsql-odbc driver. Is that possible that transaction
> is ran automatically by driver or when "*cur *=* self.conn.cursor*()" is
> executed ? Has anyone else experienced that
This is exactly what is happening. You are being warned (not a failure)
that you are issuing BEGIN after the driver has issued BEGIN. The ODBC
driver provides the user the option to auto commit or not but fundamentally
in ODBC you are always in a transaction. The lack of warnings by other
drivers is the probable reason you haven't noticed your redundancy until
now.
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/WARNING-there-is-already-a-transaction-in-progress-tp5811280...
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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: david.g.johnston@gmail.com
Subject: Re: WARNING: there is already a transaction in progress
In-Reply-To: <1405088448039-5811288.post@n5.nabble.com>
References: <CAF3mAgnJy3O0+q0_AgLp0kVPBYR4FUVkv++c1O=8BXJgsjwLmw@mail.gmail.com> <1405088448039-5811288.post@n5.nabble.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