X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 165A3528A4 for ; Mon, 8 Aug 2005 20:58:39 -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 21475-05 for ; Mon, 8 Aug 2005 23:58:37 +0000 (GMT) Received: from vsmtp3.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by svr1.postgresql.org (Postfix) with ESMTP id 93BC15280E for ; Mon, 8 Aug 2005 20:58:35 -0300 (ADT) Received: from casa (80.117.82.223) by vsmtp3.tin.it (7.2.060.1) (authenticated as giuseppe.sacco17@tin.it) id 42F1D3700016B64E for pgsql-jdbc@postgresql.org; Tue, 9 Aug 2005 01:58:32 +0200 Received: from eppesuig3wifi ([192.168.2.51]) by casa with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.50) id 1E2HQ2-00032g-Of for pgsql-jdbc@postgresql.org; Tue, 09 Aug 2005 01:52:34 +0200 Subject: Re: [PATCH] problem with DatabaseMetaData and mixed case From: Giuseppe Sacco To: pgsql-jdbc@postgresql.org In-Reply-To: References: <1123518043.6487.4.camel@localhost> Content-Type: text/plain Organization: Giuseppe Sacco Consulting Date: Tue, 09 Aug 2005 01:53:46 +0200 Message-Id: <1123545227.9087.1.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.155 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200508/42 X-Sequence-Number: 13611 Il giorno lun, 08/08/2005 alle 16.55 -0500, Kris Jurka ha scritto: [...] > Postgresql folds identifiers to lowercase as long as they are created > without quotes. Using CREATE TABLE "MyTable" (...) will indeed retain the > case of MyTable. We do not fold DatabaseMetaData parameters to lowercase > because that would prevent you from retrieving data from a table created > as "MyTable". The DatabaseMetaData methods like > storesLowerCaseIdentifiers() helps allow portable code to call the other > methods with the correct name. It doesn't help you if you don't know if > the table name was originally created as MyTable or "MyTable", but if > that's the case a call to getTables may be in order. > > Kris Jurka Thank you, and to Oliver Jowett, for this explaination. Giuseppe