Re: [GENERAL] Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully

2008-08-22 Thread Scott Marlowe
On Wed, Aug 20, 2008 at 11:25 PM, Dale <[EMAIL PROTECTED]> wrote: > This afternoon I'm > starting to notice that pgAdmin III for Windows sometimes gives > erratic error messages when there is no error or the error is actually > different. I know this because when I recompile after moving the > cu

Re: [GENERAL] Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully

2008-08-19 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Bill Moran wrote: >> Is it possible that your UPDATE command is updating multiple rows? I >> don't believe RETURNING will work on an UPDATE that touches more than 1 >> row. > Hmm, why not? plpgsql will reject UPDATE RETURNING INTO that returns more th

Re: [GENERAL] Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully

2008-08-19 Thread Bill Moran
In response to Alvaro Herrera <[EMAIL PROTECTED]>: > Bill Moran wrote: > > > Is it possible that your UPDATE command is updating multiple rows? I > > don't believe RETURNING will work on an UPDATE that touches more than 1 > > row. > > Hmm, why not? Because a doc linked to earlier in this threa

Re: [GENERAL] Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully

2008-08-19 Thread Alvaro Herrera
Bill Moran wrote: > Is it possible that your UPDATE command is updating multiple rows? I > don't believe RETURNING will work on an UPDATE that touches more than 1 > row. Hmm, why not? alvherre=> create table bill (a int, b text); CREATE TABLE alvherre=> insert into bill values (1, 'one'); INSER

Re: [GENERAL] Re: can't get UPDATE ... RETURNING ... INTO ... to compile successfully

2008-08-19 Thread Bill Moran
In response to Dale <[EMAIL PROTECTED]>: > On Aug 18, 9:23 pm, Lew <[EMAIL PROTECTED]> wrote: > > Dale wrote: > > > Hi, > > > I've got some code which postgres 8.3.3 won't accept.  Postgres > > > doesn't like the INTO clause on RETURNING INTO and I've tried > > > following the documentation. > > >