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 CD93053ACD for ; Wed, 30 Mar 2005 12:10:28 +0100 (BST) 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 47620-10 for ; Wed, 30 Mar 2005 11:10:19 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id E5E2353A81 for ; Wed, 30 Mar 2005 12:10:17 +0100 (BST) Received: (qmail 3239 invoked from network); 30 Mar 2005 11:09:09 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 30 Mar 2005 11:09:09 -0000 Message-ID: <424A8915.8010306@fastcrypt.com> Date: Wed, 30 Mar 2005 06:10:13 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: fake@dusk.homelinux.org Cc: pgsql-jdbc@postgresql.org Subject: Re: jdbc/callable statment error References: <20050330091647.GA16930@dusk.homelinux.org> In-Reply-To: <20050330091647.GA16930@dusk.homelinux.org> 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.034 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/209 X-Sequence-Number: 12601 What do the logs say when you excecute this from psql ? Dave fake@dusk.homelinux.org wrote: >When executing the following statments from netbeans 4.1 sun app server 8.1 > >CallableStatement proc = con.prepareCall("{ ? = call test_function ( ? ) }"); >proc.registerOutParameter(1, Types.BOOLEAN); >proc.setString(2, "testthis"); >proc.execute(); > >This shows up in my server log. > >LOG: statement: select * from test_function ( 'thisTest' ) as result; >ERROR: function test_function("unknown") does not exist >HINT: No function matches the given name and argument types. You may need to add explicit type casts. > > >And I get an exception from my app server that states "No function" etc, etc... > >Now, if I cut and paste that into my psql terminal it appears to work... So I'm really curious as to why it doesn't work through jdbc... > >Couple of things: I'm getting my connection through a connection pool on my app server and that appears to be in working order... > >Any suggestions? > > >Gary Lucas > >---------------------------(end of broadcast)--------------------------- >TIP 8: explain analyze is your friend > > > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561