On Sat, Sep 06, 2003 at 14:55:12 +0100,
Marek Lewczuk <newsy(at)lewczuk(dot)com> wrote:
> Hello,
> I'm moving out from MySQL to PostgreSQL and there are some function
> which are not supported in PG so I'm trying to write my own functions.
> Currently I have big problem with function IF(), below the description
> of this function from MySQL manual.
You should be able to do what you want using CASE instead of IF.