pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: maly.velky@email.cz
Cc: pgsql-jdbc@postgresql.org
Subject: Re: BUG: DatabaseMetaData.getColumns isn't case insensitive
Date: Mon, 2 Feb 2009 23:43:40 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0902022339530.23680@leary.csoft.net> (raw)
In-Reply-To: <1711.2738-17750-2075670179-1233581999@email.cz>
References: <1711.2738-17750-2075670179-1233581999@email.cz>



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



view thread (5+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0902022339530.23680@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0902022339530.23680@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0902022339530.23680@leary.csoft.net

 · 

reply

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: books@ejurka.com, maly.velky@email.cz
  Subject: Re: BUG: DatabaseMetaData.getColumns isn't case insensitive
  In-Reply-To: <Pine.BSO.4.64.0902022339530.23680@leary.csoft.net>
  References: <1711.2738-17750-2075670179-1233581999@email.cz> <Pine.BSO.4.64.0902022339530.23680@leary.csoft.net>

* 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