case / coalesce problem with strings - Mailing list pgsql-bugs

From Dino Dini
Subject case / coalesce problem with strings
Date
Msg-id 000b01c0582f$59b33d80$c5d32304@pod1.com
Whole thread Raw
List pgsql-bugs
select 'hello ' || coalesce('there','there');
ERROR:  Function 'text(unknown)' does not exist
        Unable to identify a function that satisfies the given argument
types
        You may need to add explicit typecasts

It seems clear that the coalesce construction must return a string - so why
does this fail?

The followinfg works just fine:


-Dino

pgsql-bugs by date:

Previous
From: Dmitry Gercog
Date:
Subject: call plpgsql function bug! (set arguments to NULL)
Next
From: "Dino Dini"
Date:
Subject: Re: case / coalesce problem with strings WORKAROUND