From: Ludek Finstrle <luf@pzkagis.cz>
To: pgsql-odbc@postgresql.org
Subject: Disallow premature is broken
Date: Wed, 25 Jan 2006 23:50:29 +0100
Message-ID: <20060125225029.GA7678@soptik.pzkagis.cz> (raw)
Hello,
Dmitry pointed me that Disallow premature is next broken feature.
I found next difference between old driver and new one.
When there are more statements in one (using semicolon ';') that
07.03 driver returns more results QResultClass. The 08.01 one
returns only one QResultClass. The example of such mutlistatement is:
"BEGIN; SELECT * FROM table; COMMIT". The old driver returns 3
QResultClass but 08.01 driver returns only last result (from COMMIT)
QResultClass.
This behaviour breaks Disallow premature so it fails with access
violation. I can fix it becouse now we are using PQgetResult. But I'm
not sure if it doesn't break something another.
I could fix a little the Disallow premature so it doesn't fail
with access violation but it doesn't work at all.
What do you think? How do we want change the behaviout before
releasing new stable release? I'm not sure. There is no much time
for testing new behaviour. The multistatements hasn't been reported
yet by users. It seems this feature isn't widely used.
Regards,
Luf
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: luf@pzkagis.cz
Subject: Re: Disallow premature is broken
In-Reply-To: <20060125225029.GA7678@soptik.pzkagis.cz>
References: <20060125225029.GA7678@soptik.pzkagis.cz>
* 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