X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 31F8B52B82 for ; Mon, 1 Aug 2005 13:28:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 49446-01 for ; Mon, 1 Aug 2005 16:28:04 +0000 (GMT) Received: from fep32-app.kolumbus.fi (fep32-0.kolumbus.fi [193.229.0.63]) by svr1.postgresql.org (Postfix) with ESMTP id 7C95F52856 for ; Mon, 1 Aug 2005 13:28:02 -0300 (ADT) Received: from [192.168.1.101] (really [84.231.186.215]) by fep32-app.kolumbus.fi with ESMTP id <20050801162801.BLDL12976.fep32-app.kolumbus.fi@[192.168.1.101]>; Mon, 1 Aug 2005 19:28:01 +0300 Message-ID: <42EE4D8E.8010104@kolumbus.fi> Date: Mon, 01 Aug 2005 19:27:58 +0300 From: Marko Ristola User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Merlin Moncure Cc: Eric E , pgsql-odbc@postgresql.org Subject: Re: Lowercase folding - simple patch? References: <6EE64EF3AB31D5448D0007DD34EEB3417DCF20@Herge.rcsinc.local> In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DCF20@Herge.rcsinc.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.138 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200508/4 X-Sequence-Number: 5643 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