Lucazeo <lucazeo(at)katamail(dot)com> writes:
> It seems that ("inDate" IS NULL) never returns true, even when the
> parameter is null...
Exceedingly unlikely.
> What's wrong?
You have not provided enough context for anyone to guess.
regards, tom lane