RE: [HACKERS] Re: behavior of ' = NULL' vs. MySQL vs. Standards

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: "'Tom Ivar Helbekkmo'" <tih(at)kpnQwest(dot)no>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>, Mark Stosberg <mark(at)summersault(dot)com>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: [HACKERS] Re: behavior of ' = NULL' vs. MySQL vs. Standards
Date: 2001-06-07 19:36:20
Message-ID: 01C0EF67.9A5733D0.mascarm@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

The best solution would be to have the ODBC translate instances of '=
NULL' into IS NULL before submitting the query to PostgreSQL. I'm
sure this is how other vendors, like Oracle handle the issue. Well,
probably sure... :-)

Mike Mascari
mascarm(at)mascari(dot)com

-----Original Message-----
From: Tom Ivar Helbekkmo [SMTP:tih(at)kpnQwest(dot)no]
Sent: Thursday, June 07, 2001 3:18 PM
To: Tom Lane
Cc: Stephan Szabo; Mark Stosberg; pgsql-sql(at)postgresql(dot)org;
pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Re: [SQL] behavior of ' = NULL' vs. MySQL vs.
Standards

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> A compromise answer might be to offer a SET variable that selects
the
> Microsoft-compatible misimplementation. Would that fly?

I'd say that's the best way to handle stuff like this. If you
implement something that breaks the standard, to be compatible with
arrogant programmers at Microsoft who feel that they are above such
things, you're encouraging users to develop bad habits. Better to
make them go "SET MICROSOFT BUG COMPATIBILITY ON" first.

To see the effect of leniency in re standards, just try to browse
around the web with a browser that rejects incorrect HTML! :-)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Ivar Helbekkmo 2001-06-07 19:37:50 Re: AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards
Previous Message Mike Mascari 2001-06-07 19:34:17 RE: Re: 7.2 items

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Ivar Helbekkmo 2001-06-07 19:42:32 Re: [HACKERS] Re: behavior of ' = NULL' vs. MySQL vs. Standards
Previous Message Tom Ivar Helbekkmo 2001-06-07 19:17:40 Re: [HACKERS] Re: behavior of ' = NULL' vs. MySQL vs. Standards