Re: problem with overloading the "coalesce" function

Поиск
Список
Период
Сортировка
От Emil Rachovsky
Тема Re: problem with overloading the "coalesce" function
Дата
Msg-id 20060306111333.83983.qmail@web54306.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: problem with overloading the "coalesce" function  (Richard Huxton <dev@archonet.com>)
Ответы Re: problem with overloading the "coalesce" function
Список pgsql-general

--- Richard Huxton <dev@archonet.com> wrote:

> Emil Rachovsky wrote:
> >
> >  Hi,
> > I am trying to overload the "coalesce" function to
> > accept an integer and a string. Here it is :
> >
> > CREATE OR REPLACE FUNCTION "coalesce"(a int4, b
> > "varchar")
> >   RETURNS "varchar" AS
> ...
> > I have added it to pg_catalog, but still I cant't
> use
> > it, I get an error on the second parameter
>
> What is the error?

The error is :  invalid input syntax for integer
That is,it expects an integer as a second parameter,
since the first is an integer.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: problem with overloading the "coalesce" function
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: problem with overloading the "coalesce" function