From: | "Joolz" <joolz(at)arbodienst-limburg(dot)nl> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: pl/pgsql oddity |
Date: | 2004-12-16 09:37:34 |
Message-ID: | 36295.10.0.4.254.1103189854.squirrel@webmail.arbodienst-limburg.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ian Barwick zei:
> On Thu, 16 Dec 2004 10:06:19 +0100 (CET), Joolz
> <joolz(at)arbodienst-limburg(dot)nl> wrote:
>> Hello everyone,
>>
>> When writing some serverside code I ran into an oddity that I
>> managed to boil down to this:
>>
>> -------------------------------------------------------
>> create or replace function fubar() returns varchar as '
>> declare
>> l integer;
>> begin
>> l = 38;
>> if l < 38 then
>> return ''< 38'';
>> elseif l >= 38 then
>
> Try "elsif" here.
> (No, I don't know what the problem with "elseif" is).
Thanks Ian, but I don't understand... I _am_ already using elseif...
From | Date | Subject | |
---|---|---|---|
Next Message | Tomasz Myrta | 2004-12-16 09:37:59 | Re: pl/pgsql oddity |
Previous Message | Richard Huxton | 2004-12-16 09:35:27 | Re: pl/pgsql oddity |