From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Colin Freas <cef6@georgetown.edu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC bug?
Date: Mon, 26 Nov 2001 15:53:56 -0500 (EST)
Message-ID: <200111262053.fAQKruV18936@candle.pha.pa.us> (raw)
In-Reply-To: <IIEPJDIJEEBPKJGDFFBEAEDMCAAA.cef6@georgetown.edu>
> > 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
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: pgman@candle.pha.pa.us, cef6@georgetown.edu
Subject: Re: JDBC bug?
In-Reply-To: <200111262053.fAQKruV18936@candle.pha.pa.us>
References: <IIEPJDIJEEBPKJGDFFBEAEDMCAAA.cef6@georgetown.edu> <200111262053.fAQKruV18936@candle.pha.pa.us>
* 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