X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BCE679DC839 for ; Sat, 11 Feb 2006 12:55:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57067-03 for ; Sat, 11 Feb 2006 12:55:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 30ED79DC950 for ; Sat, 11 Feb 2006 12:55:39 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k1BGtYZL008557; Sat, 11 Feb 2006 11:55:34 -0500 (EST) To: "Rob Johnston" cc: pgsql-jdbc@postgresql.org Subject: Re: Function that exists doesn't exist? In-reply-to: <000801c62e0a$f6d76620$bd63a8c0@dev01> References: <000801c62e0a$f6d76620$bd63a8c0@dev01> Comments: In-reply-to "Rob Johnston" message dated "Fri, 10 Feb 2006 16:26:44 +1000" Date: Sat, 11 Feb 2006 11:55:34 -0500 Message-ID: <8556.1139676934@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.109 required=5 tests=[AWL=0.109] X-Spam-Score: 0.109 X-Spam-Level: X-Archive-Number: 200602/82 X-Sequence-Number: 14679 "Rob Johnston" 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