[asterisk-dev] tilghman: trunk r247787 - /trunk/channels/chan_sip.c

Tony Mountifield tony at softins.clara.co.uk
Fri Feb 19 10:49:28 CST 2010


In article <201002190954.15281.tlesher at digium.com>,
Tilghman Lesher <tlesher at digium.com> wrote:
> On Friday 19 February 2010 06:46:53 Tony Mountifield wrote:
> >
> > MySQL is can easily distinguish between 0 and NULL in numeric columns.
> >
> > If you have the statement: row = mysql_fetch_row(result);
> > then row[n]==NULL if the corresponding column contains an SQL NULL, but if
> > the column contains a zero, row[n] points to the string "0".
> 
> Perhaps this is something that MySQL has finally fixed in later versions, but
> at one time, this was indeed the problem.

I don't know how far back this would be. It has behaved as I described
since I started using the C API for MySQL 3.23 in 2004.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list