pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Gagnon <dgagnon@siunik.com>
To: pgsql-jdbc@postgresql.org
Subject: question regarding upgrade from  pg74.215.jdbc3.jar  to postgresql-8.1-407.jdbc3.jar. function does not exist appeared ??? Please help :-/
Date: Tue, 22 Aug 2006 18:15:47 -0400
Message-ID: <44EB8213.2090303@siunik.com> (raw)

Hi,

  I just upgraded my jdbc driver and fixing stuff to make it work with 
the new driver.  I cannot find the  answer to the following one.  I 
tried with the old driver and everything works.  With the new one that 
doesn't work.

Here is the function declaration:
CREATE OR REPLACE FUNCTION usp_Comptabilite_AgeDeCompteClient(VARCHAR, 
VARCHAR, DATE, BOOLEAN, BOOLEAN, INT, VARCHAR) RETURNS refcursor  AS $$


Here is the error that I grabbed from the postgresql log file:

          select * from usp_Comptabilite_AgeDeCompteClient(M, NULL, 
2006-08-22 -0400, 1,         1, 0, NULL)     

2006-08-22 18:04:27 LOG:  statement: PREPARE <unnamed> AS           
select * from usp_Comptabilite_AgeDeCompteClient($1, $2, $3, $4,         
$5, $6, $7)     
2006-08-22 18:04:27 ERROR:  function 
usp_comptabilite_agedecompteclient(character varying, character varying, 
"unknown", boolean, boolean, character varying, "unknown") does not exist
2006-08-22 18:04:27 HINT:  No function matches the given name and 
argument types. You may need to add explicit type casts.
2006-08-22 18:04:27 STATEMENT:            select * from 
usp_Comptabilite_AgeDeCompteClient($1, $2, $3, $4,         $5, $6, $7)     


If I execute the statement on pgAdminIII it works: select * from 
usp_Comptabilite_AgeDeCompteClient('M', NULL, '2006-08-22', 
true,         true, '0', NULL)      ;

Any idea what is the difference between drivers that can explain this.  
And of course how I can fix the problem! 

Thanks for your help!  It's really appreciated!
Best Regards
/David

P.S.: I traced with the debugger and I do call setDate for arg $3.  I 
don't understand why it's still unknow ?









view thread (3+ messages)  latest in thread

Message-ID: <44EB8213.2090303@siunik.com>
Permalink:  ../44EB8213.2090303@siunik.com/
Also on:    postgresql.org/message-id/44EB8213.2090303@siunik.com

 · 

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: dgagnon@siunik.com
  Subject: Re: question regarding upgrade from  pg74.215.jdbc3.jar  to postgresql-8.1-407.jdbc3.jar. function does not exist appeared ??? Please help :-/
  In-Reply-To: <44EB8213.2090303@siunik.com>
  References: <44EB8213.2090303@siunik.com>

* 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