Re: JDBC bug? - Mailing list pgsql-jdbc

From Bruce Momjian
Subject Re: JDBC bug?
Date
Msg-id 200111261830.fAQIUOH29986@candle.pha.pa.us
Whole thread Raw
In response to JDBC bug?  (Nate Gelbard <gelbardn@tripwire.com>)
Responses Re: JDBC bug?  ("Colin Freas" <cef6@georgetown.edu>)
Re: JDBC bug?  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
List pgsql-jdbc
> 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.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-jdbc by date:

Previous
From: Stuart Robinson
Date:
Subject: Re: CallableStatements
Next
From: "Dave Cramer"
Date:
Subject: Re: CallableStatements