From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Performance improvement proposal. Removal of toLowerCase calls.
Date: Thu, 16 Jan 2014 21:21:30 +0100
Message-ID: <lb9evn$5cc$1@ger.gmane.org> (raw)
In-Reply-To: <CADK3HH+nXuw-fk+6jAqebFdY=tW0ZjN_crAdYnXN=66tHSBNww@mail.gmail.com>
References: <52D7FE5E.3050503@redhat.com>
<52D83125.2020908@ttc-cmc.net>
<CADK3HH+485pnAK0RE7XbC2zwQOOMEUVqEd4xxcxCZgk9LgtA5A@mail.gmail.com>
<lb9cvv$coo$1@ger.gmane.org>
<CADK3HH+nXuw-fk+6jAqebFdY=tW0ZjN_crAdYnXN=66tHSBNww@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Dave Cramer wrote on 16.01.2014 20:51:
>
> Are you sure ? This is in the resultset, so any column names should have come back from the db.
> Which means that they should come back in lower case anyway.
>
> create table foo
> (
> "ID" integer,
> "Bar" varchar
> );
>
> select *
> from foo;
>
> Should return ID and Bar as the column names.
>
>
> Exactly! While I haven't actually tested the code. The lines that Jeremy is referring to would seem to suggest that
>the return columns would be id and bar.
>
> Does anyone have time to test this ?
The current driver returns this correctly for a ResultSet.
Here is a "transcript" from running my application on the console
(easier to copy & paste than a screenshot)
SQL Workbench/J console interface started.
Enter 'exit' to quit.
Enter 'WbHelp' for a list of SQL Workbench/J specific commands
Config directory: C:\Projects\sqlworkbench\conf
SQL> wbconnect {Postgres}/WbTest;
Connection to "User=thomas, Schema=public, URL=jdbc:postgresql://localhost/wbtest" successful
thomas@wbtest/public> create table foo ("ID" integer, "Bar" varchar, "FoBaR" varchar);
Table 'foo' created
thomas@wbtest/public> insert into foo values (1, 'foo', 'bar');
INSERT executed successfully
1 row affected
thomas@wbtest/public> select * from foo;
ID | Bar | FoBaR
---+-----+------
1 | foo | bar
(1 Row)
SELECT executed successfully
thomas@wbtest/public>
All the various API calls in DatabaseMetaData do return identifiers in the correct case as well.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Performance improvement proposal. Removal of toLowerCase calls.
In-Reply-To: <lb9evn$5cc$1@ger.gmane.org>
References: <52D7FE5E.3050503@redhat.com> <52D83125.2020908@ttc-cmc.net> <CADK3HH+485pnAK0RE7XbC2zwQOOMEUVqEd4xxcxCZgk9LgtA5A@mail.gmail.com> <lb9cvv$coo$1@ger.gmane.org> <CADK3HH+nXuw-fk+6jAqebFdY=tW0ZjN_crAdYnXN=66tHSBNww@mail.gmail.com> <lb9evn$5cc$1@ger.gmane.org>
* 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