Re: problem porting MySQL SQL to Postgres

From: Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: Dan Field <dof(at)llgc(dot)org(dot)uk>, "pgsql-sql (at) postgresql (dot) org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: problem porting MySQL SQL to Postgres
Date: 2004-04-18 19:24:47
Message-ID: 20040418202447.A16735@bacon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 18/04/2004 19:37 Markus Bertheau wrote:
> В Чтв, 15.04.2004, в 13:15, Paul Thomas пишет:
> > On 15/04/2004 11:25 Dan Field wrote:
>
> > Your "= NULL" tests are also not valid SQL (should be IS NULL).
>
> I think = NULL _is_ valid SQL, it just doesn't do what you think.

It's valid in an assignment

update foo set bar = null;

PostgreSQL can be coerced into accepting where foo = null with the
transform_null_equals run-time option but that doesn't make it legal SQL
IFAIK.

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2004-04-19 03:21:57 Re: problem porting MySQL SQL to Postgres
Previous Message Markus Bertheau 2004-04-18 18:37:53 Re: problem porting MySQL SQL to Postgres