Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3658D9FA0B7 for ; Sun, 28 Oct 2007 16:27:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 58414-02 for ; Sun, 28 Oct 2007 16:26:57 -0300 (ADT) X-Greylist: delayed 00:30:03.505425 by SQLgrey-1.7.5 Received: from m5-141.126.com (m5-141.126.com [202.108.5.141]) by postgresql.org (Postfix) with SMTP id 52E369FA05C for ; Sun, 28 Oct 2007 16:26:59 -0300 (ADT) Received: from [192.168.1.13] (unknown [222.135.60.90]) by smtp4 (Coremail) with SMTP id wKjSjbBblAB22yRHqhXpAQ==.58458S2; Mon, 29 Oct 2007 02:56:54 +0800 (CST) Subject: about function overload,a bug? From: "cncinfo@126.com" Reply-To: cncinfo@126.com To: pgsql-jdbc@postgresql.org Content-Type: text/plain Date: Mon, 29 Oct 2007 02:56:53 +0800 Message-Id: <1193597813.2737.26.camel@happy.letu.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-33.0.1.el5) Content-Transfer-Encoding: 7bit X-Coremail-Antispam: 1U3Yxn0WfASr-VFAUDIcSsGvfJTRUUUj6AFxVCF77xC6IxKo4 kEV4ylIxAIcVC2z280aVAFwI0_Jr0_Gr1lx4CE17CEb7AF67AKxVWUJVWUXwAq048E620v w7xCY7CE4x8GYI0EYx1l7I0Y64k_M2kK64xIx7IE4cxKj280x2IE548m6r1fGr15AwAv7V C0I7IYx2IY67AKxVWUJVWUGwCF72vE52k0Y41ln4vEF2I2jVCvjc8Ez7AK6c8GOVWUur4U XF1lYx0Ex4A2jsIE14v26r1j6r4UM7C26IkvcIIF6IxKo4kEV4ylc2IjII80xcxEwVAKI4 8JMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_Gr1ln4vEF2I2jVAajcAI6sx054AE6r1fGr15 XwAFF20E14v26r1j6r4UM2kK64xIx7IE87I20xCjj4IE548m6r1fGr18KwAYFVCjjxCrM7 CIcVAFz4kK6r1j6r18Mc02F40EFcxC0VAKzVAqx4xG6I80ewCY1Ik26cxK6x8YrwAYjsxI 4VWUJjkaLaAFLSUrUUUUUjvjm3AaLaJ3UjIFyTuYvjxUeSdgDUUUUUAaLaJaTrg_ArWUWF WxtFy3Aw4DuryUJr1Up5X_ZrWfprWYvF13A3ykAa1UGr1Sg3W3C3savF4rW3y7G3Wjkr97 uwn8Ja95GFZ5ta1jvFn8Xr1UtFn2vw1SqaykA3ZIvFJ== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.838 tagged_above=0 required=5 tests=BAYES_50=0.001, RCVD_BAD_ID=2.837 X-Spam-Level: ** X-Archive-Number: 200710/168 X-Sequence-Number: 17740 My English is bad. I write two functions with plpgsql: 1. user_chgpasswd(character varying, character varying, timestamp without time zone) Note:content of the function is just "return 0;" 2.user_chgpasswd(character varying, character varying, character varying) Both of them return integer. I invoke the first one in pgadmin,returns 0;but in my application(setString(),setString(),setTimestamp()),the result is not 0. I tried postgresql-8.2-506.jdbc3.jar and postgresql-8.2-506.jdbc4.jar,both wrong. I check my code for a long time,no wrong.I delete the second function in postgresql and run my application again,returns 0. It seems "timestamp without time zone" is same as "character varying" in jdbc,so jdbc invoke wrong function.