--- 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 

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to