Subject | Re: [firebird-support] Exchange two column values in a single statement... |
---|---|
Author | Dmitry Yemanov |
Post date | 2006-10-02T12:34:09Z |
Svein Erling Tysvaer wrote:
current behaviour is definitely not.
Dmitry
>Yes, as your understanding is exactly standard compliant while the
> I'm surprised that things are evaluated left to right and that a and b
> have changing values. Intuitively, without looking at any SQL standard
> or thinking too deeply, I'd rather expect
>
> update t1 set a = b, b = a
>
> to swap the values of two fields and a and b to be 'static' - always
> referring to the old value of a or b - when on the right side of an
> assignment.
>
> Will the next FB version behave this way?
current behaviour is definitely not.
Dmitry