Re: strange construct with RETURN within plpgsql

Поиск
Список
Период
Сортировка
От mariusz
Тема Re: strange construct with RETURN within plpgsql
Дата
Msg-id 1518787203.10667.105.camel@mtvk.pl
обсуждение исходный текст
Ответ на Re: strange construct with RETURN within plpgsql  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: strange construct with RETURN within plpgsql  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
On Fri, 2018-02-16 at 13:51 +0100, Pavel Stehule wrote:


> It is not a bug, it is feature. Sometimes not nice. RETURN is keyword
> in procedural part, but it is nothing in sql part.
> 
thanks, i haven't thought about such an obvious thing, i feel really
ashamed.
of course it makes sense now. i guess what mislead me was that statement
var := val and forgetting that it's like select into under the hood, and
even when i put strict select into in examples i didn't spot this (it
must have been a very long week and i definitely need some rest)
thanks again

regards,
mj





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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: strange construct with RETURN within plpgsql
Следующее
От: "Thiemo Kellner, NHC Barhufpflege"
Дата:
Сообщение: Re: Dynamic PL/pgSQL select query: value association propblem