Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9E844632C8B for ; Tue, 3 Feb 2009 00:43:44 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 82352-10 for ; Tue, 3 Feb 2009 00:43:41 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 46DB6632C88 for ; Tue, 3 Feb 2009 00:43:41 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id 9ACB2A29B; Mon, 2 Feb 2009 23:43:40 -0500 (EST) Date: Mon, 2 Feb 2009 23:43:40 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: maly.velky@email.cz cc: pgsql-jdbc@postgresql.org Subject: Re: =?us-ascii?Q?BUG=3A=20DatabaseMetaData=2EgetColumns=20isn=27t=20case=20insensitive?= In-Reply-To: <1711.2738-17750-2075670179-1233581999@email.cz> Message-ID: References: <1711.2738-17750-2075670179-1233581999@email.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/5 X-Sequence-Number: 19280 On Mon, 2 Feb 2009, maly.velky@email.cz wrote: > I'was trying to get meta data of a column and discovered that the column > name is case sensitive though it should be case insensitive. I don't > know if this can be somehow determined by a configuration or environment > change because I believe that till recently it worked in a > case-insensitive manner. This is done by design and has been since 7.3 I believe. The problem is that you can legally have two columns named "T1" and "t1". To support this we need to be case sensitive on the Java side. > BTW, the metadata reports: > supportsMixedCaseIdentifiers: false > supportsMixedCaseQuotedIdentifiers: true > (which is pretty much expected) This is reporting how the server matches up with the SQL standard, not how a particular JDBC API call works. Kris Jurka