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

From: David Fetter <david(at)fetter(dot)org>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com>, pgsql-patches(at)postgresql(dot)org, neilc(at)samurai(dot)com
Subject: Re: PLpgSQL: list of scalars as row for assign stmt, fore
Date: 2005-12-21 01:38:32
Message-ID: 20051221013832.GA30262@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Pavel Stehule 2005-12-21 03:54:43 Re: PLpgSQL: list of scalars as row for assign stmt, fore and fors stm
Previous Message Christopher Kings-Lynne 2005-12-21 01:26:35 Re: PLpgSQL: list of scalars as row for assign stmt, fore