| PostgreSQL Reference Manual - Volume 3 - Server Administration Guide by The PostgreSQL Global Development Group Paperback (6"x9"), 204 pages ISBN 0954612043 RRP £13.95 ($24.95) Sales of this book support the PostgreSQL project! Get a printed copy>>> |
4.12.2 Platform and Client Compatibility
transform_null_equals(boolean)-
When on, expressions of the form
expr = NULL(orNULL = expr) are treated asexpr IS NULL, that is, they return true if expr evaluates to the null value, and false otherwise. The correct SQL-spec-compliant behavior ofexpr = NULLis to always return null (unknown). Therefore this parameter defaults tooff. However, filtered forms in Microsoft Access generate queries that appear to useexpr = NULLto test for null values, so if you use that interface to access the database you might want to turn this option on. Since expressions of the formexpr = NULLalways return the null value (using the correct interpretation) they are not very useful and do not appear often in normal applications, so this option does little harm in practice. But new users are frequently confused about the semantics of expressions involving null values, so this option is not on by default. Note that this option only affects the exact form= NULL, not other comparison operators or other expressions that are computationally equivalent to some expression involving the equals operator (such asIN). Thus, this option is not a general fix for bad programming. Refer to Volume 1: Comparison Operators for related information.
| ISBN 0954612043 | PostgreSQL Reference Manual - Volume 3 - Server Administration Guide | See the print edition |