Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: NULL safe equality operator


  • From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
  • To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
  • Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
  • Subject: Re: NULL safe equality operator
  • Date: Fri, 25 Nov 2005 17:15:30 +0900
  • Message-id: <9363B5AF-21E9-4078-A71E-0D73F00A0388(at)myrealbox(dot)com>


On Nov 25, 2005, at 17:06 , Christopher Kings-Lynne wrote:

test=# select null_safe_cmp (NULL,NULL);
ERROR: could not determine anyarray/anyelement type because input has type "unknown"
test=# select null_safe_cmp (NULL::integer,NULL::integer);
null_safe_cmp
---------------
             1
(1 row)
Same casting problem due to anyelement, of course.

Yes - I wonder what the trick to getting around that is?

Don't use NULL.

Michael Glaesemann
grzm myrealbox com






Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group