From: Vadim Zeitlin <vadim@zeitlins.org>
To: pgsql-odbc@postgresql.org
Subject: Regression with no results returned from query between 9.01.01 and 9.01.02
Date: Fri, 12 Apr 2013 14:58:35 +0200
Message-ID: <E1UQdYt-00073I-9I@smtp.tt-solutions.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hello,
Our code doing some relatively simple SELECT queries has stopped working
after upgrading from 9.01.01 to 9.01.02. After some debugging and bisecting
I found that:
1. The original bug was introduced by a seemingly nonsensical change to
the SC_forget_unnamed() macro in statement.h in
https://github.com/hlinnaka/psqlodbc/commit/5f35a04c498c4af02a3d2ac4cd84a0610562c2a4
2. The symptoms we're seeing have been corrected by the apparently
unrelated change in a yet unreleased commit
https://github.com/hlinnaka/psqlodbc/commit/79fa21bd5c52157cf9a2296b06aa7ad6cb9c8b9c
I don't know this code at all so it's very difficult for me to day whether
the latter commit really fixes the problem or just works around/hides it,
but it seems pretty strange to have "FALSE && ..." condition as it's, of
course, always false, so why bother with testing it at all? Considering
that the commit of (1) also was clearly not tested much as it even broke
the code compilation (missing closing quote in the change to version.h), I
am not inclined to trust this change. But this is just a gut feeling and it
would be great if someone who really understands this code could look at
it.
More generally, it would be very nice to have 9.01.03 release fixing this
bug as it's pretty annoying that we need to tell our users to download the
one but last release of the ODBC driver instead of the latest one.
Thanks in advance,
VZ
P.S. Does anybody know why the CVS repository at
http://pgfoundry.org/scm/?group_id=1000125 doesn't work? Is the Github
hlinnaka/psqlodbc repository the official place for psqlodbc sources
or is there some other place to get them from?
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: vadim@zeitlins.org
Subject: Re: Regression with no results returned from query between 9.01.01 and 9.01.02
In-Reply-To: <E1UQdYt-00073I-9I@smtp.tt-solutions.com>
References: <E1UQdYt-00073I-9I@smtp.tt-solutions.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