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 476733A5DF7 for ; Sun, 5 Dec 2004 21:32:31 +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 80460-05 for ; Sun, 5 Dec 2004 21:32:27 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id BA5B33A5D0F for ; Sun, 5 Dec 2004 21:32:28 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1Cb3zT-0002Fe-00; Mon, 06 Dec 2004 10:32:23 +1300 Message-ID: <41B37FDC.1010101@opencloud.com> Date: Mon, 06 Dec 2004 10:38:36 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041130) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Larry White Cc: pgsql-jdbc@postgresql.org Subject: Re: prepared statement call fails References: In-Reply-To: X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime 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 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/28 X-Sequence-Number: 11694 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