From: Marko Ristola <Marko.Ristola@kolumbus.fi>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: 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 23:26:05 +0300
Message-ID: <42EE855D.5000208@kolumbus.fi> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC96B4@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC96B4@ratbert.vale-housing.co.uk>
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
>
>
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, dpage@vale-housing.co.uk, merlin.moncure@rcsonline.com, whalesuit@bonbon.net
Subject: Re: Lowercase folding - simple patch?
In-Reply-To: <42EE855D.5000208@kolumbus.fi>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC96B4@ratbert.vale-housing.co.uk> <42EE855D.5000208@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