|
1 | 1 | <!-- |
2 | | -$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.191 2004/03/05 02:41:14 momjian Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.192 2004/03/07 01:01:44 neilc Exp $ |
3 | 3 | PostgreSQL documentation |
4 | 4 | --> |
5 | 5 |
|
@@ -301,20 +301,22 @@ PostgreSQL documentation |
301 | 301 | <literal><replaceable>expression</replaceable> = NULL</literal> |
302 | 302 | because <literal>NULL</> is not <quote>equal to</quote> |
303 | 303 | <literal>NULL</>. (The null value represents an unknown value, |
304 | | - and it is not known whether two unknown values are equal.) |
| 304 | + and it is not known whether two unknown values are equal.) This |
| 305 | + behavior conforms to the SQL standard. |
305 | 306 | </para> |
306 | 307 |
|
307 | 308 | <para> |
308 | | - Some applications may(incorrectly) require that |
| 309 | + Some applications mayexpect that |
309 | 310 | <literal><replaceable>expression</replaceable> = NULL</literal> |
310 | 311 | returns true if <replaceable>expression</replaceable> evaluates to |
311 | | - the null value. To support these applications, the run-time option |
312 | | - <varname>transform_null_equals</varname> can be turned on (e.g., |
313 | | - <literal>SET transform_null_equals TO ON;</literal>). |
314 | | - <productname>PostgreSQL</productname> will then convert |
315 | | - <literal>x = NULL</literal> clauses to |
316 | | - <literal>x IS NULL</literal>. This was |
317 | | - the default behavior in releases 6.5 through 7.1. |
| 312 | + the null value. It is highly recommended that these applications |
| 313 | + be modified to comply with the SQL standard. However, if that |
| 314 | + cannot be done the <varname>transform_null_equals</varname> |
| 315 | + configuration variable is available. If it is enabled, |
| 316 | + <productname>PostgreSQL</productname> will convert <literal>x = |
| 317 | + NULL</literal> clauses to <literal>x IS NULL</literal>. This was |
| 318 | + the default behavior in <productname>PostgreSQL</productname> |
| 319 | + releases 6.5 through 7.1. |
318 | 320 | </para> |
319 | 321 |
|
320 | 322 | <para> |
|