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 2FF9D52802 for ; Mon, 1 Aug 2005 17:26:18 -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 32373-02 for ; Mon, 1 Aug 2005 20:26:13 +0000 (GMT) Received: from fep02-app.kolumbus.fi (fep02-0.kolumbus.fi [193.229.0.44]) by svr1.postgresql.org (Postfix) with ESMTP id 7729A52C1A for ; Mon, 1 Aug 2005 17:26:07 -0300 (ADT) Received: from [192.168.1.101] (really [84.231.186.215]) by fep02-app.kolumbus.fi with ESMTP id <20050801202607.DVUU8199.fep02-app.kolumbus.fi@[192.168.1.101]>; Mon, 1 Aug 2005 23:26:07 +0300 Message-ID: <42EE855D.5000208@kolumbus.fi> Date: Mon, 01 Aug 2005 23:26:05 +0300 From: Marko Ristola User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: Merlin Moncure , Eric E , pgsql-odbc@postgresql.org Subject: Re: Lowercase folding - simple patch? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.118 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200508/10 X-Sequence-Number: 5649 According to Microsoft: Attribute SQL_ATTR_METADATA_ID: SQL_TRUE means, that table names and table columns are case insensitive. SQL_FALSE means, that table names and table columns are case sensitive. So, with this attribute, Microsoft Excel might give a hint wether the table names are supposed to be handled as case sensitive (SQL_FALSE) or case insensitive (SQL_TRUE). It seems, that the lower case setting can be forced via ODBC config via "lower_case_identifier" variable. Alternatively the program (Excel) can activate it when needed via SQL_ATTR_METADATA_ID attribute. One Untested Solution into the Problem: SC_is_lower_case(): (metadata_id || lower_case_identifier) This way the case insensitivity can be either activated/deactivated with ODBC API function calls, or forced via Windows ODBC Driver setting regardless what Excel wants. The bug is now, that only the ODBC Driver setting is used under the CVS HEAD psqlodbc. I don't know, wether the newest stable psqlodbc works with the ODBC Driver setting either, because that feature has been fixed with the looong sprintf() with about 70 arguments. Marko Ristola Dave Page wrote: > > > > >> >> > >I *think* && is appropriate, however I'm too busy too look into this in >depth right now. Any chance you can confirm this? >(a->options.metadata_id is attribute SQL_ATTR_METADATA_ID btw). > >Regards, Dave. > >---------------------------(end of broadcast)--------------------------- >TIP 6: explain analyze is your friend > >