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
обсуждение исходный текст
Ответ на Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code  (Praveen Kumar <praveenkumar52028@gmail.com>)
Список pgsql-bugs
>>>>> "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)


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Praveen Kumar
Дата:
Сообщение: Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15060: Row in table not found when using pg function in anexpression