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 46B923A5D0F for ; Sun, 5 Dec 2004 21:59:29 +0000 (GMT) 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 84837-03 for ; Sun, 5 Dec 2004 21:59:14 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by svr1.postgresql.org (Postfix) with ESMTP id 1E1E63A50E8 for ; Sun, 5 Dec 2004 21:59:15 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 68so107332wra for ; Sun, 05 Dec 2004 13:59:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=efgal3cmaeyDo6ooUcklrM5aqtZsqxkAG7YI5OZwFKQkyWJFxLzT0rS8n3ROkQFYuAbfch2gsQbR4MWHSr8Ue1lcqA4KgqtvKJkDcsh4yEBtaFn/zM434EqlTMBhSTrbiobU7AQPme+RxBu7pJ1QBaFgJri5zMQJ5gXHHqoceCQ= Received: by 10.54.49.71 with SMTP id w71mr1156902wrw; Sun, 05 Dec 2004 13:59:15 -0800 (PST) Received: by 10.54.53.13 with HTTP; Sun, 5 Dec 2004 13:59:15 -0800 (PST) Message-ID: Date: Sun, 5 Dec 2004 16:59:15 -0500 From: Larry White Reply-To: Larry White To: Oliver Jowett Subject: Re: prepared statement call fails Cc: pgsql-jdbc@postgresql.org In-Reply-To: <41B37FDC.1010101@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41B37FDC.1010101@opencloud.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.54 tagged_above=0 required=5 tests=AWL, FROM_ENDS_IN_NUMS, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200412/29 X-Sequence-Number: 11695 That did the trick. Thanks much. On Mon, 06 Dec 2004 10:38:36 +1300, Oliver Jowett wrote: > Larry White wrote: > > > proc = connection.prepareCall("{ ? = call add_country( ? ? ? ? ) }"); > > You are missing commas between your ? parameter placeholders. > > Try: > > proc = connection.prepareCall("{ ? = call add_country(?,?,?,?) }"); > > Otherwise your code looks OK. > > It may be useful to turn on statement logging on the server side if you > have more problems -- the JDBC driver is transforming your query and it > can be useful to see exactly what's getting sent to the server. > > -O >