IS NULL seems to return false, even when parameter is NULL - Mailing list pgsql-general

From Lucazeo
Subject IS NULL seems to return false, even when parameter is NULL
Date
Msg-id 2411a015-e265-45e5-87b5-09ddbd2ae323@k30g2000hse.googlegroups.com
Whole thread Raw
Responses Re: IS NULL seems to return false, even when parameter is NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: IS NULL seems to return false, even when parameter is NULL  ("Andrus" <kobruleht2@hot.ee>)
List pgsql-general
I have a strange problem with the following condition in a SELECT:
AND (("TableData" = "inDate") OR ("inDate" IS NULL))

it works perfectly when the input date in the function (inDate) matchs
a date in the table, but it does not work when the parameter inDate is
NULL.
I recall the function with pgadmin writing NULL as paramater.
It seems that ("inDate" IS NULL) never returns true, even when the
parameter is null...
What's wrong?

Lucazeo

pgsql-general by date:

Previous
From: Ivan Sergio Borgonovo
Date:
Subject: parser: tokens in tsearch2
Next
From: Tom Lane
Date:
Subject: Re: IS NULL seems to return false, even when parameter is NULL