Re: Function that exists doesn't exist?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rob Johnston" <rob(at)aqq(dot)com(dot)au>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Function that exists doesn't exist?
Date: 2006-02-11 16:55:34
Message-ID: 8556.1139676934@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

"Rob Johnston" <rob(at)aqq(dot)com(dot)au> writes:
> org.postgresql.util.PSQLException: ERROR: function =
> update_payable_account(integer, character varying, character varying, =
> character varying, integer, numeric, integer) does not exist

> Our function looks like this:
> CREATE OR REPLACE FUNCTION update_payable_account(id int4, name =
> "varchar", sup bpchar, cus bpchar, terms int2, del "numeric", astat =
> int4)

int2 is not integer, and bpchar is not varchar. There is an implicit
cast from varchar to bpchar, but not from int4 to int2.

regards, tom lane

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Roman Chervotkin 2006-02-12 01:25:35 PostgreSQL 8.1 and Sun Java Studio Creator2
Previous Message Jan de Visser 2006-02-10 14:53:30 Re: Full XA availability ?