From: Marko Ristola <Marko.Ristola@kolumbus.fi>
To: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: Eric E <whalesuit@bonbon.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Lowercase folding - simple patch?
Date: Mon, 01 Aug 2005 19:27:58 +0300
Message-ID: <42EE4D8E.8010104@kolumbus.fi> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DCF20@Herge.rcsinc.local>
References: <6EE64EF3AB31D5448D0007DD34EEB3417DCF20@Herge.rcsinc.local>
Does somebody know, wether the following code is correct:
odbcapi.c:
RETCODE SQL_API
SQLColumns(HSTMT StatementHandle, ...)
{
...
if (SC_is_lower_case(stmt, conn)) /* case-insensitive identifier */
ifallupper = FALSE;
In above there is one hidden problem:
SC_is_lower_case() is implemented as follows:
statement.h:#define SC_is_lower_case(a, b) (a->options.metadata_id,
b->connInfo.lower_case_identifier)
GCC compiler complaints (-Wall enabled) about the definition:
odbcapi.c:140: warning: left-hand operand of comma expression has no effect
So this means, that a->options.metadata_id is not used at all. Maybe the
comma
should be replaced with && or || ?
Marko Ristola
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: Marko.Ristola@kolumbus.fi, merlin.moncure@rcsonline.com, whalesuit@bonbon.net
Subject: Re: Lowercase folding - simple patch?
In-Reply-To: <42EE4D8E.8010104@kolumbus.fi>
References: <6EE64EF3AB31D5448D0007DD34EEB3417DCF20@Herge.rcsinc.local> <42EE4D8E.8010104@kolumbus.fi>
* 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