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 5BF3F53495 for ; Wed, 30 Mar 2005 11:08:57 +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 28484-09 for ; Wed, 30 Mar 2005 10:08:48 +0000 (GMT) Received: from dusk.homelinux.org (S010600055dfbe9a8.vc.shawcable.net [24.80.175.202]) by svr1.postgresql.org (Postfix) with ESMTP id 6192253971 for ; Wed, 30 Mar 2005 11:08:47 +0100 (BST) Received: from dusk.homelinux.org (localhost.localdomain [127.0.0.1]) by dusk.homelinux.org (8.12.11/8.12.11) with ESMTP id j2U9H5Qv016983 for ; Wed, 30 Mar 2005 01:17:16 -0800 Received: (from fake@localhost) by dusk.homelinux.org (8.12.11/8.12.11/Submit) id j2U9Gxj4016982 for pgsql-jdbc@postgresql.org; Wed, 30 Mar 2005 01:16:59 -0800 Date: Wed, 30 Mar 2005 01:16:47 -0800 From: fake@dusk.homelinux.org To: pgsql-jdbc@postgresql.org Subject: jdbc/callable statment error Message-ID: <20050330091647.GA16930@dusk.homelinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.365 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, NO_REAL_NAME, RCVD_IN_SORBS_DUL X-Spam-Level: X-Archive-Number: 200503/207 X-Sequence-Number: 12599 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