[asterisk-dev] NULL from MySQL database not NULL?

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed May 6 11:34:23 CDT 2009


On Wednesday 06 May 2009 10:57:30 Chris Maciejewski wrote:
> I am not sure if it is a bug, but Asterisk SVN-branch-1.6.1-r190371 +
> Addons 1.6.1 behaves in the following way:

It's not a bug.

> So looks like 'NULL' value fetched from MySQL table is not considered
> 'NULL' by ISNULL function??!!!

The ISNULL function is not related to the database function in any way.  In
some ways, it's rather poorly named, because the intent of the function is
to measure whether or not the value of the variable is blank, which the string
"NULL" certainly is not.

-- 
Tilghman



More information about the asterisk-dev mailing list