Re: Lowercase folding - simple patch?

From: Marko Ristola <Marko(dot)Ristola(at)kolumbus(dot)fi>
To: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: Eric E <whalesuit(at)bonbon(dot)net>, pgsql-odbc(at)postgresql(dot)org
Subject: Re: Lowercase folding - simple patch?
Date: 2005-08-01 16:27:58
Message-ID: 42EE4D8E.8010104@kolumbus.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc


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

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Marko Ristola 2005-08-01 17:14:30 Re: IIS Postgres ASP ADO - Problem
Previous Message Dave Page 2005-08-01 15:59:13 Re: undefined symbol: ucs2_to_utf8