From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Nate Gelbard <gelbardn@tripwire.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC bug?
Date: Mon, 26 Nov 2001 13:17:52 -0600
Message-ID: <20011126131752.A4857@rice.edu> (raw)
In-Reply-To: <200111261830.fAQIUOH29986@candle.pha.pa.us>
References: <200111261830.fAQIUOH29986@candle.pha.pa.us>
Note that this is SQL92 standards compliant behavior: identifiers
are supposed to be case-insensitive, unless quoted.
Ross
On Mon, Nov 26, 2001 at 01:30:24PM -0500, Bruce Momjian wrote:
> > Hi,
> >
> > I've found an annoyance with the postgresql JDBC driver (from the 7.1.3
> > release).
> >
> > Pardon if this has been asked before, but the web archives are offline...
> >
> > In org/postgresql/jdbc2/DatabaseMetaData.java, there are several lines
> > that call toLowerCase() on the table string names. This causes 'table
> > unknown' erros when accessing tables with mixed case in the name. This
> > popped out at me when trying to use the XML-DBMS package and also
> > DbVisualizer.
> >
> > Also, when using the pgsql shell, \d createdBy returns table unknown,
> > but \d "createBy" returns the right info.
> >
> > So does postgres not support mixed case in table names, or the backend
> > does but the clients dont, or what?
>
> Well, we support mixed case identifiers, but they need to be
> double-quoted, as you saw. The \d behavior looks correct. The jdbc
> issue looks more complicated because we are forcing lowercase in the
> jdbc code. Perhaps some jdbc folks can comment on that.
>
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: reedstrm@rice.edu, pgman@candle.pha.pa.us, gelbardn@tripwire.com
Subject: Re: JDBC bug?
In-Reply-To: <20011126131752.A4857@rice.edu>
References: <200111261830.fAQIUOH29986@candle.pha.pa.us> <20011126131752.A4857@rice.edu>
* 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