Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group