pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: fake@dusk.homelinux.org
To: pgsql-jdbc@postgresql.org
Subject: Re: jdbc/callable statment error
Date: Wed, 30 Mar 2005 01:55:13 -0800
Message-ID: <20050330095513.GA17040@dusk.homelinux.org> (raw)
In-Reply-To: <20050330091647.GA16930@dusk.homelinux.org>
References: <20050330091647.GA16930@dusk.homelinux.org>

And now that I think of it, I'm useing postgres 7.4

Not sure how relevant that is,

Gary


On Wed, Mar 30, 2005 at 01:16:47AM -0800, 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



view thread (5+ messages)  latest in thread

Message-ID: <20050330095513.GA17040@dusk.homelinux.org>
Permalink:  ../20050330095513.GA17040@dusk.homelinux.org/
Also on:    postgresql.org/message-id/20050330095513.GA17040@dusk.homelinux.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: fake@dusk.homelinux.org
  Subject: Re: jdbc/callable statment error
  In-Reply-To: <20050330095513.GA17040@dusk.homelinux.org>
  References: <20050330091647.GA16930@dusk.homelinux.org> <20050330095513.GA17040@dusk.homelinux.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox