From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Praveen Kumar <praveenkumar52028@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code
Date: Mon, 12 Feb 2018 11:03:04 +0000
Message-ID: <87a7weschp.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAG2WJO2ttPbM=yzQGOL23Fc63WCbBjbhDwoZkLKNDSuDrozVaw@mail.gmail.com>
References: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org>
<87wozlrwmc.fsf@news-spur.riddles.org.uk>
<CAG2WJO3QDnQg+MquwpoOMJzpxz60=oQE=7kpDhR7hg=TR_RfoA@mail.gmail.com>
<87sha9rs41.fsf@news-spur.riddles.org.uk>
<CAG2WJO2ttPbM=yzQGOL23Fc63WCbBjbhDwoZkLKNDSuDrozVaw@mail.gmail.com>
>>>>> "Praveen" == Praveen Kumar <praveenkumar52028@gmail.com> writes:
Praveen> ERROR: function decode(numeric, integer, unknown, unknown) does not exist
Praveen> LINE 1: select decode(lotid,1,'Lot Id Found','Lot Id not found') fro...
Praveen> ^
Praveen> HINT: No function matches the given name and argument types. You might
Praveen> need to add explicit type casts.
I can't reproduce that:
create function decode(anyelement,anyelement,text,text) returns void
language plpgsql
as $$
begin
raise info 'decode(anyelement,anyelement,text,text)';
end;
$$;
create function decode(numeric,integer,text,text) returns void
language plpgsql
as $$
begin
raise info 'decode(numeric,integer,text,text)';
end;
$$;
select decode(1::numeric, 1, 'foo', 'bar');
INFO: decode(numeric,integer,text,text)
Please show a COMPLETELY SELF-CONTAINED test case.
--
Andrew (irc:RhodiumToad)
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-bugs@postgresql.org
Cc: andrew@tao11.riddles.org.uk, praveenkumar52028@gmail.com
Subject: Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code
In-Reply-To: <87a7weschp.fsf@news-spur.riddles.org.uk>
References: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org> <87wozlrwmc.fsf@news-spur.riddles.org.uk> <CAG2WJO3QDnQg+MquwpoOMJzpxz60=oQE=7kpDhR7hg=TR_RfoA@mail.gmail.com> <87sha9rs41.fsf@news-spur.riddles.org.uk> <CAG2WJO2ttPbM=yzQGOL23Fc63WCbBjbhDwoZkLKNDSuDrozVaw@mail.gmail.com> <87a7weschp.fsf@news-spur.riddles.org.uk>
* 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