Documenting NULLVALUE() and NONNULLVALUE()

Started by David Garamondover 21 years ago3 messagesdocs
Jump to latest
#1David Garamond
lists@zara.6.isreserved.com

Perl and PHP programmers (such as myself) are accustomed to using
defined()/isset() and so when wanting to test null value they might look
to the Functions chapter (9) instead of the SQL Syntax chapter (4). It
took me some time before I found out about ISNULL, IS NULL, NOTNULL, IS
NOT NULL. In MySQL I am accustomed to using ISNULL() function.

Perhaps we can change section 9.1 from "Logical Operators" to "Logical
Functions and Operators"? NULLVALUE() and NONNULLVALUE() can be
documented there, along with IS, IS NULL, and IS NOT NULL (which also
don't seem to have been covered yet in Chapter 9).

Should I submit a patch?

--
dave

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: David Garamond (#1)
Re: Documenting NULLVALUE() and NONNULLVALUE()

David Garamond <lists@zara.6.isreserved.com> writes:

Perhaps we can change section 9.1 from "Logical Operators" to "Logical
Functions and Operators"? NULLVALUE() and NONNULLVALUE() can be
documented there, along with IS, IS NULL, and IS NOT NULL (which also
don't seem to have been covered yet in Chapter 9).

I don't think we should document nullvalue() and nonnullvalue(), because
they are not standard.

As for "not covered", IS NULL is documented in 9.2 Comparison Operators.

regards, tom lane

#3David Garamond
lists@zara.6.isreserved.com
In reply to: Tom Lane (#2)
Re: Documenting NULLVALUE() and NONNULLVALUE()

Tom Lane wrote:

Perhaps we can change section 9.1 from "Logical Operators" to "Logical
Functions and Operators"? NULLVALUE() and NONNULLVALUE() can be
documented there, along with IS, IS NULL, and IS NOT NULL (which also
don't seem to have been covered yet in Chapter 9).

I don't think we should document nullvalue() and nonnullvalue(), because
they are not standard.

As for "not covered", IS NULL is documented in 9.2 Comparison Operators.

Ah, it's not immediately visible so I missed that. Thanks.

--
dave