Re: plpgsql on 8.0b4 bug? - Mailing list pgsql-hackers

From James Robinson
Subject Re: plpgsql on 8.0b4 bug?
Date
Msg-id 2B68878A-3986-11D9-8BCB-000A9566A412@socialserve.com
Whole thread Raw
In response to Re: plpgsql on 8.0b4 bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Between ugly #1 and ugly #2, I'd think that a wart teaching it that 
'ELSEIF' is not a valid manner to start a statement (i.e. following a 
semicolon) would be preferable. Allowing us hacks to write functions 
containing both spellings makes the language look poor since it ought 
to slap us into formal shape. This isn't [insert a lossy SQL 
implementation or slop-inspiring scripting language here]. We're 
typesafe and syntax checking!

On Nov 18, 2004, at 12:09 PM, Tom Lane wrote:

> It occurs to me that one simple thing we could do is make plpgsql 
> accept
> both ELSIF and ELSEIF as legal spellings of the keyword.  This seems a
> bit ugly but I can't think of any really good objections.

----
James Robinson
Socialserve.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: plpgsql on 8.0b4 bug?
Next
From: Bruno Wolff III
Date:
Subject: Re: invalid page header