Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X5bh5-0001xr-72 for pgsql-odbc@arkaria.postgresql.org; Fri, 11 Jul 2014 14:20:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X5bh3-00034e-RC for pgsql-odbc@arkaria.postgresql.org; Fri, 11 Jul 2014 14:20:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X5bh3-00034V-9R for pgsql-odbc@postgresql.org; Fri, 11 Jul 2014 14:20:57 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X5bgy-0002tA-W5 for pgsql-odbc@postgresql.org; Fri, 11 Jul 2014 14:20:56 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X5bgu-00070j-1S for pgsql-odbc@postgresql.org; Fri, 11 Jul 2014 07:20:48 -0700 Date: Fri, 11 Jul 2014 07:20:48 -0700 (PDT) From: David G Johnston To: pgsql-odbc@postgresql.org Message-ID: <1405088448039-5811288.post@n5.nabble.com> In-Reply-To: References: Subject: Re: WARNING: there is already a transaction in progress MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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-tp5811280p5811288.html 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