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

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"xtron" <xtronz(at)yandex(dot)ru> writes:
> this is NOT work:
> update a1 set a1.value = a2.value from a2 where =;

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

pgsql-bugs by date

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

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