pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: praveenkumar52028@gmail.com
Subject: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code
Date: Sat, 10 Feb 2018 07:57:33 +0000
Message-ID: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15057
Logged by:          Praveen Kumar
Email address:      praveenkumar52028@gmail.com
PostgreSQL version: 9.6.0
Operating system:   Redhat Linux 6
Description:        

Hi Guys,

We have recently migrated our oracle database to PostgreSQL database,and
migration went successfully.
We have used ORAFCE to provide backward compatibility.
But ,unfortunately we stuck with one issue in calling DECODE /TRUNC/or any
other user defined PostgreSQL functions

That is type UNKNOWN

If I try to call a function as below

select myFunction(1,'This is unknown type',90.01,'Again a unknown type
column');

It is raising an error like function myFunction(integer, unknown, double
precision, unknown) does not exist.

But in reality, I have this function like myFunction(integer,text,double
precision,text)

I have gone through all PostgreSQL documents and mail threads but couldn't
find any accurate solution.
Kindly provide an immediate workaround or a permanent solution.

FYI - I have tried latest PostgreSQL version(PostgreSQL 10) Still no use of
it

select 'hello' return text type

select pg_typeof('hello') returns unknown type

Please help out to fix this.


Thanks,
Praveen









view thread (19+ messages)  latest in thread

Message-ID: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org>
Permalink:  ../151824945389.9456.1263445998324211651@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/151824945389.9456.1263445998324211651@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, praveenkumar52028@gmail.com
  Subject: Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code
  In-Reply-To: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org>
  References: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org>

* 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