X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B21E152A00 for ; Wed, 10 Aug 2005 14:18:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64136-06 for ; Wed, 10 Aug 2005 17:18:49 +0000 (GMT) Received: from mail2.yozons.com (mail2.yozons.com [206.80.109.180]) by svr1.postgresql.org (Postfix) with ESMTP id 7CDF05287E for ; Wed, 10 Aug 2005 14:18:48 -0300 (ADT) Received: from [192.168.1.51] (soho2.yozons.com [206.80.109.178] (may be forged)) (authenticated bits=0) by mail2.yozons.com (8.12.8/8.12.8) with ESMTP id j7AHIIVq002317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Aug 2005 10:18:38 -0700 Message-ID: <42FA36D0.5060906@computer.org> Date: Wed, 10 Aug 2005 10:18:08 -0700 From: David Wall User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: PG 8.0.3 - PreparedStatement Can't Use Query Methods exception References: <42FA2E1D.1060109@computer.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.329 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200508/72 X-Sequence-Number: 13641 Thanks, Kris. I didn't even SEE that I had submitted the query string in both places (in the prepareStatement as well as the executeQuery methods), which is clearly not what I had intended, though I got away with it before I suppose. David >The JDBC 3 Spec 13.2.4 says, "If any of the PreparedStatement execute >methods is called with an SQL string as a parameter, an SQLException is >thrown." > >Kris Jurka > > >