Re: pl/pgsql oddity - Mailing list pgsql-general

From Joolz
Subject Re: pl/pgsql oddity
Date
Msg-id 36295.10.0.4.254.1103189854.squirrel@webmail.arbodienst-limburg.nl
Whole thread Raw
In response to Re: pl/pgsql oddity  (Ian Barwick <barwick@gmail.com>)
List pgsql-general
Ian Barwick zei:
> On Thu, 16 Dec 2004 10:06:19 +0100 (CET), Joolz
> <joolz@arbodienst-limburg.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...


pgsql-general by date:

Previous
From: Tomasz Myrta
Date:
Subject: Re: pl/pgsql oddity
Next
From: Csaba Nagy
Date:
Subject: Re: Scheduler in Postgres