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 7DA2F5E3F15 for ; Wed, 1 Sep 2004 06:28:39 -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 79878-07 for ; Wed, 1 Sep 2004 09:28:37 +0000 (GMT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id 97B5D5E4713 for ; Wed, 1 Sep 2004 06:28:35 -0300 (ADT) Received: from tmsl-adsl.demon.co.uk ([80.177.114.181] helo=bacon.tmsl.demon.co.uk) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1C2RPx-000BeM-0Z; Wed, 01 Sep 2004 09:28:37 +0000 Date: Wed, 1 Sep 2004 10:28:22 +0100 From: Paul Thomas To: Oliver Jowett Cc: GGattis@iTeamOne.com, "pgsql-jdbc @ postgresql . org" Subject: Re: JDBC Update question (quoted strings) Message-ID: <20040901102822.B8527@bacon> References: <20040901102750.A8527@bacon> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <20040901102750.A8527@bacon>; from paul@tmsl.demon.co.uk on Wed, Sep 01, 2004 at 10:27:50 +0100 X-Mailer: Balsa 1.2.3 Lines: 31 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/4 X-Sequence-Number: 10894 On 01/09/2004 04:46 Oliver Jowett wrote: > Gerry Gattis wrote: >> Hi Oliver, >> >> Thanks for the response. David pointed out that I was using the wrong >> call to create the statement. After I corrected that, the driver works >> fine. I think that it must be treating strings differently if it thinks >> that it is talking to a stored procedure. That would make sense. >> >> Methinks the bug is me! > > Hmm.. but prepareCall should behave the same as prepareStatement for > simple queries, in theory. It should only behave differently if it sees > a {call} escape sequence.. > > Odd. Could it be anything to do with him using stmt.execute() instead of the more usual stmt.executeUpdate()? -- Paul Thomas +------------------------------+---------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+---------------------------------------------+