Re: BUG #13708: strange behaviour instead of syntax error

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: BUG #13708: strange behaviour instead of syntax error
Дата
Msg-id CAM-w4HOtgpKttkptZu0D5Uv5d1yiqiWn9m1Hhv5Hqy=LGsKvGA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #13708: strange behaviour instead of syntax error  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #13708: strange behaviour instead of syntax error  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-bugs
On 24 Oct 2015 00:03, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>
> Hmmm ... maybe just adding parens would do the trick.
>
> regression=# SELECT ('ERROR: No uncollected prize found!' RETURN);
> ERROR:  syntax error at or near "RETURN"
>
> That looks more promising ... though I'm not sure if there are
> any cases it would break.

That does seem like a good idea. There are plennty of keywords that can
follow a target list that would lead to strange behaviour, not the last of
which would be FROM... Adding parentheses should mean only a valid
expression should be accepted.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #13657: Some kind of undetected deadlock between query and "startup process" on replica.
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: BUG #13657: Some kind of undetected deadlock between query and "startup process" on replica.