Fix handling of NULL constraint conditions: per SQL92 spec, a NULL result

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6d1efd76fb9852b8bc242dcaf35916090d7c5899
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-01-19T23:55:03Z
Releases: 7.1.1
Fix handling of NULL constraint conditions: per SQL92 spec, a NULL result
from a constraint condition does not violate the constraint (cf. discussion
on pghackers 12/9/99).  Implemented by adding a parameter to ExecQual,
specifying whether to return TRUE or FALSE when the qual result is
really NULL in three-valued boolean logic.  Currently, ExecRelCheck is
the only caller that asks for TRUE, but if we find any other places that
have the wrong response to NULL, it'll be easy to fix them.

Files