Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code

Поиск
Список
Период
Сортировка
Искать
От
Andrew Gierth
Тема
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code
Дата
Msg-id
87a7weschp.fsf@news-spur.riddles.org.uk
Ответ на
Список
Дерево обсуждения
BUG #15057: Issue with UNKNOW type when calling a PostgreSQL functionfrom java code PG Bug reporting form <noreply@postgresql.org>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code Praveen Kumar <praveenkumar52028@gmail.com>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code Praveen Kumar <praveenkumar52028@gmail.com>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code "David G. Johnston" <david.g.johnston@gmail.com>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code Pavel Stehule <pavel.stehule@gmail.com>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQLfunction from java code Pavel Stehule <pavel.stehule@gmail.com>
Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code Praveen Kumar <praveenkumar52028@gmail.com>
>>>>> "Praveen" == Praveen Kumar  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)

В списке pgsql-bugs по дате отправления
От: Praveen Kumar
Дата:
От: PG Bug reporting form
Дата:
FAQ