From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: pgsql-bugs@lists.postgresql.org
To: praveenkumar52028@gmail.com
Subject: Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code
Date: Sat, 10 Feb 2018 10:07:30 +0000
Message-ID: <87wozlrwmc.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org>
References: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org>
>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> writes:
PG> If I try to call a function as below
PG> select myFunction(1,'This is unknown type',90.01,'Again a unknown
PG> type column');
PG> It is raising an error like function myFunction(integer, unknown,
PG> double precision, unknown) does not exist.
I think you need to be a bit more specific about what precisely you did,
because this is what I tried:
create or replace function
myfunc(a integer, b text, c double precision, d text)
returns void language plpgsql
as $$ begin raise info 'myfunc called'; end; $$;
select myfunc(1,'foo',90.01,'bar');
INFO: myfunc called
In particular: do you have more than one function of the same name? Were
you actually calling the function from JDBC with parameters (and if so
what types) rather than as a plain select? Show us an exact transcript,
not just your editorialized summary.
--
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: <87wozlrwmc.fsf@news-spur.riddles.org.uk>
References: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org> <87wozlrwmc.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