Received: from barry.xythos.com ([64.139.0.223]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAQKrnm29026 for ; Mon, 26 Nov 2001 15:53:49 -0500 (EST) (envelope-from barry@xythos.com) Received: from xythos.com (localhost.localdomain [127.0.0.1]) by barry.xythos.com (8.11.6/8.11.6) with ESMTP id fAQKqTx09707; Mon, 26 Nov 2001 12:52:29 -0800 Message-ID: <3C02AB8D.7070808@xythos.com> Date: Mon, 26 Nov 2001 12:52:29 -0800 From: Barry Lind User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us MIME-Version: 1.0 To: Colin Freas CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC bug? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200111/280 X-Sequence-Number: 2477 Colin, Whether it is better or not isn't the issue. That is how the SQL standard says it is supposed to work. If you create the objects with quoted mixed case identifiers you must use quoted mixed case identifiers to access the objects. A better solution to your problem would be to create the tables without using quoted indentifiers and then your original query would work. thanks, --Barry Colin Freas wrote: >>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"); > > This is how I got it to work: > 3. rs = stmt.executeQuery("SELECT \"response\".\"questionID\", > \"response\".\"respondentID\", \"response\".\"answer\", \"response\".\"ID\" > FROM \"response\" WHERE "\response\".\"questionID\"=16"); > > Sorry, does anyone think the third is better than the second? > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > >