Re: PLpgSQL: list of scalars as row for assign stmt, fore

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: PLpgSQL: list of scalars as row for assign stmt, fore
Дата
Msg-id 20051221013832.GA30262@fetter.org
обсуждение исходный текст
Ответ на Re: PLpgSQL: list of scalars as row for assign stmt, fore  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-patches
On Wed, Dec 21, 2005 at 09:26:35AM +0800, Christopher Kings-Lynne wrote:
> >>   x, y := r;
> >
> >That strikes me as a really bad idea.  It weakens both syntax and
> >semantic error checking, to accomplish how much?
>
> Could use PHP-style thingy:
>
> LIST(x, y) := r;

Better still, the pg way:

[ROW](x, y) := r;

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: tuple count and v3 functions in psql for COPY
Следующее
От: Volkan YAZICI
Дата:
Сообщение: Re: tuple count and v3 functions in psql for COPY