Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAQKs7m29032 for ; Mon, 26 Nov 2001 15:54:07 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id fAQKruV18936; Mon, 26 Nov 2001 15:53:56 -0500 (EST) From: Bruce Momjian Message-Id: <200111262053.fAQKruV18936@candle.pha.pa.us> Subject: Re: JDBC bug? In-Reply-To: "from Colin Freas at Nov 26, 2001 03:41:28 pm" To: Colin Freas Date: Mon, 26 Nov 2001 15:53:56 -0500 (EST) CC: pgsql-jdbc@postgresql.org X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200111/281 X-Sequence-Number: 2478 > > via quoted mixed case identifiers. I haven't seen any evidence that > > basic SQL operations (select, insert, update, delete) have a bug in them. > > I'd peg a where clause as a basic SQL operation, and be it bug, feature, > annoyance, whatever, it wasn't functioning because of the case of a column > name. > > This worked: > 1. rs = stmt.executeQuery("select * from response"); > > But I wanted to do this, which didn't work: > 2. rs = stmt.executeQuery("select * from response where questionID=16"); Only this should have worked: rs = stmt.executeQuery("select * from response where \"questionID\"=16"); The expansion of the "*" should protect any mixed case items by default. -- 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