From: N. Campbell <the6campbells@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Sqlcancel and commands ignored until end of transaction block
Date: Tue, 13 May 2014 07:42:50 -0400
Message-ID: <5372053d.a4ea320a.71be.5f55@mx.google.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Can someone explain why postgres exhibits the following behaviour . dsn has use declare fetch on. Application sets auto commit on and proceeds to prepare, describe , bind and execute a query. While execute is running it calls sqlcancel and will subsequently receive
current transaction is aborted, commands ignored until end of transaction block when it attempts to describe the number of columns on a new statement it prepared on the same connection.
Why can it not continue per other vendors. Why does it do this with sqlcancel yet allows similar sequences where a prepare may have failed or exception is thrown by execute (ie. Div by zero etc).
There seems to be no documentation saying that the handling of sqlcancel is by design and why. Why is this not a design issue which still appears to exist in current 9.x releases.
Seems like a bug to me but many posts found via Google do not appear to clarify design intent, why so and why it had not been changed.
--
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: the6campbells@gmail.com
Subject: Re: Sqlcancel and commands ignored until end of transaction block
In-Reply-To: <5372053d.a4ea320a.71be.5f55@mx.google.com>
References: <5372053d.a4ea320a.71be.5f55@mx.google.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