pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: cncinfo@126.com <cncinfo@126.com>
To: pgsql-jdbc@postgresql.org
Subject: about function overload,a bug?
Date: Mon, 29 Oct 2007 02:56:53 +0800
Message-ID: <1193597813.2737.26.camel@happy.letu.com> (raw)

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.





view thread (3+ messages)  latest in thread

Message-ID: <1193597813.2737.26.camel@happy.letu.com>
Permalink:  ../1193597813.2737.26.camel@happy.letu.com/
Also on:    postgresql.org/message-id/1193597813.2737.26.camel@happy.letu.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: cncinfo@126.com
  Subject: Re: about function overload,a bug?
  In-Reply-To: <1193597813.2737.26.camel@happy.letu.com>
  References: <1193597813.2737.26.camel@happy.letu.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