Re: SQL spec/implementation question: UPDATE

From: Nis Jørgensen <nis(at)superlativ(dot)dk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL spec/implementation question: UPDATE
Date: 2007-10-23 12:18:20
Message-ID: ffkoqj$a6m$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Albe Laurenz skrev:
> Tom Lane wrote:
>>> I don't have handy a spec guide. Does this mean that MySQL
>>> is indeed showing incorrect behavior?
>> I think this is really outside the spec.
> [...]
>> There is not anything I can see addressing whether an
>> "update" should or should not be considered to occur if a
>> target column happens to not change as a result of a
>> commanded update.
>
> Moreover, I can think of one argument why an UPDATE that
> does not change the value of the row should still occur:
> There may be an ON UPDATE trigger on the table that you
> expect to fire whether or not the UPDATE was "optimized
> away".

This case seems indeed to be "broken" in MySQL.

Nis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2007-10-23 12:32:51 Re: Bitmap Heap scan 8.1/8.2
Previous Message Csaba Nagy 2007-10-23 12:07:27 Re: Reliability of WAL replication