Re: We aren't a relational database ... ?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Kaare Rasmussen <kaare(at)jasonic(dot)dk>
Cc: pgsql-advocacy(at)postgresql(dot)org
Subject: Re: We aren't a relational database ... ?
Date: 2007-10-09 18:48:35
Message-ID: 1191955715.19081.24.camel@dogma.ljc.laika.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy

On Tue, 2007-10-09 at 09:44 +0200, Kaare Rasmussen wrote:
> > In SQL, "=" is both an assignment operator (e.g. UPDATE) and a
> > comparison operator (e.g. WHERE clause). There are nondeterministic
>
>
> Why would that be a problem when they occur in different parts of the
> statement?
>

It can actually be in the same part of the statement:

UPDATE foo SET b = a = 0;

is legal in PostgreSQL. How weird is that? At a glance, can you tell
what it's doing?

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message David Fetter 2007-10-09 19:13:23 Re: We aren't a relational database ... ?
Previous Message David Fetter 2007-10-09 16:18:23 Re: We aren't a relational database ... ?