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 20:47:28 +0100
Message-ID: <lb9cvv$coo$1@ger.gmane.org> (raw)
In-Reply-To: <CADK3HH+485pnAK0RE7XbC2zwQOOMEUVqEd4xxcxCZgk9LgtA5A@mail.gmail.com>
References: <52D7FE5E.3050503@redhat.com>
<52D83125.2020908@ttc-cmc.net>
<CADK3HH+485pnAK0RE7XbC2zwQOOMEUVqEd4xxcxCZgk9LgtA5A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
> 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.
Danap probably also referred to the column names that are returned through getTableColumns() or getIndexColumns() or any other API call that returns information about tables, columns or other identifiers. I do the same thing in SQL Workbench/J: check the returned column names whether they are upper, lower or mixed case in order to know whether generated SQL statements (e.g. an update resulting from editing the data) need to quote the column names or not.
Thomas
--
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: <lb9cvv$coo$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>
* 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