Received: from ece.rice.edu (ece.rice.edu [128.42.4.34]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAQJHrm21966 for ; Mon, 26 Nov 2001 14:17:53 -0500 (EST) (envelope-from reedstrm@rice.edu) Received: from localhost (localhost [127.0.0.1]) by ece.rice.edu (Postfix) with ESMTP id F16EE68A14; Mon, 26 Nov 2001 13:17:52 -0600 (CST) Received: from wallace.ece.rice.edu (wallace.ece.rice.edu [128.42.12.154]) by ece.rice.edu (Postfix) with ESMTP id 5381E68A0E; Mon, 26 Nov 2001 13:17:52 -0600 (CST) Received: from reedstrm by wallace.ece.rice.edu with local (Exim 3.22 #1 (Debian)) id 168RGK-0001J3-00; Mon, 26 Nov 2001 13:17:52 -0600 Date: Mon, 26 Nov 2001 13:17:52 -0600 From: "Ross J. Reedstrom" To: Bruce Momjian Cc: Nate Gelbard , pgsql-jdbc@postgresql.org Subject: Re: JDBC bug? Message-ID: <20011126131752.A4857@rice.edu> Mail-Followup-To: "Ross J. Reedstrom" , Bruce Momjian , Nate Gelbard , pgsql-jdbc@postgresql.org References: <200111261830.fAQIUOH29986@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200111261830.fAQIUOH29986@candle.pha.pa.us> User-Agent: Mutt/1.3.18i X-Virus-Scanned: by AMaViS snapshot-20010714 X-Archive-Number: 200111/269 X-Sequence-Number: 2466 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. >