plpgsql: Is ELSE IF supported or not? - Mailing list pgsql-hackers

From Marko Kreen
Subject plpgsql: Is ELSE IF supported or not?
Date
Msg-id e51f66da0806260357s2be646cdg2aa491eceebe63d8@mail.gmail.com
Whole thread Raw
Responses Re: plpgsql: Is ELSE IF supported or not?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
Docs seems to say it is, but following function fails to compile:

create function err_else() returns void as $$
begin   if 1 = 1 then   else if 1 = 2 then   end if;
end;
$$ language plpgsql;

ERROR:  syntax error at or near ";"
LINE 6: end;

Version 8.3.3.

-- 
marko


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Join Removal/ Vertical Partitioning
Next
From: "Pavel Stehule"
Date:
Subject: Re: plpgsql: Is ELSE IF supported or not?