Re: BUG #4515: UPDATE strange behavior

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "xtron" <xtronz(at)yandex(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4515: UPDATE strange behavior
Date: 2008-11-06 14:13:58
Message-ID: 17921.1225980838@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"xtron" <xtronz(at)yandex(dot)ru> writes:
> this is NOT work:
> update a1 set a1.value = a2.value from a2 where a1.id = a2.id;

This syntax is disallowed by the SQL standard: a SET target is just the
name of the column. If we tried to interpret it as you suggest then
we'd be incompatible for composite-type columns.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tomasz Ostrowski 2008-11-06 14:31:52 Re: BUG #4514: Pi division error
Previous Message Tom Lane 2008-11-06 13:41:34 Re: plperl & sort