From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Michał Niklas <michal(dot)niklas(at)heuthes(dot)pl> |
Cc: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: getColumns() is not table name case insensitive |
Date: | 2003-02-19 22:10:31 |
Message-ID: | Pine.LNX.4.33.0302191703590.27947-100000@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Wed, 19 Feb 2003, [ISO-8859-2] Micha Niklas wrote:
> Hello,
> My program can show tables and columns.
> I use metainformation to get it.
> Unfortunatelly getColumns() works fine only
> if name of table is identical in case
> with table name in PostgreSQL system tables.
>
> I think both relname and attname should be compared
> without case sensitivity.
>
What if you have two tables named "tableone" and "TableOne" then you
cannot retrieve the information for just one of the tables.
You can determine the Postgres case folding rules from the various
DatabaseMetaData.storesXXXXXCaseIdentifiers methods. What this won't tell
you is wether your original table was created with quotes or not. If your
getColumns call is generated from the results of getTables then your fine
because it will give you the correct case. What is your table name source
for this application?
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Tomisław Kityński | 2003-02-20 07:31:21 | UtfToLocal: could not convert UTF-8 |
Previous Message | Oliver Jowett | 2003-02-19 22:04:08 | Re: SSL for JDBC |