Re: semicolon not required on END statement
| От | Tom Lane |
|---|---|
| Тема | Re: semicolon not required on END statement |
| Дата | |
| Msg-id | 4645.1096602412@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: semicolon not required on END statement (Neil Conway <neilc@samurai.com>) |
| Ответы |
Re: semicolon not required on END statement
|
| Список | pgsql-bugs |
Neil Conway <neilc@samurai.com> writes:
> On Fri, 2004-10-01 at 01:11, Hussein Patni wrote:
>> I noticed in plpgsql that a semi colon is not always requiredafter
>> the END statement.
> Yeah, I've noticed this as well (although it doesn't appear to be
> documented). Would we gain anything by enforcing this restriction? IMHO
> not a lot...
We specifically do not require a semicolon at the very end of the
function definition. My recollection is that the plpgsql grammar did
originally enforce that, and we relaxed it because it confused people.
You have to admit that
... END;';
is a bit odd-looking.
regards, tom lane
В списке pgsql-bugs по дате отправления: