From: Volkmar Herbst GCI <herbst@gc-i.de>
To: pgsql-sql@postgresql.org
Subject: strange update behavior
Date: Wed, 13 Apr 2011 21:59:01 +0200
Message-ID: <006b01cbfa15$41ec1800$c5c44800$@de> (raw)
I did encounter a quite strange behavior during update which I did not
understand:
The following query updated table parcelle with only one entry for all rows:
update cadastre.parcelle
set code_unique = t2.code_unique from
cadastre.parcelle t1, cadastre.propriete t2
where t1.uoid = t2.uoidparcelle;
the next update query behaved as expected :
update cadastre.parcelle
set code_unique = t2.code_unique from
cadastre.parcelle t1, cadastre.propriete t2
where parcelle.uoid = t2.uoidparcelle;
Why do i have to reference table parcelle in the where clause?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: herbst@gc-i.de
Subject: Re: strange update behavior
In-Reply-To: <006b01cbfa15$41ec1800$c5c44800$@de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox