2010/9/15 Juha Heinanen <j...@tutpro.com>:
> Iñaki Baz Castillo writes:
>
>> I retrieve the value of an integer column in a MySQL table. In this
>> case the value is NULL. I store the result in a $var:
>>
>>  $var(client_max_calls) = $dbr(client=>[0,0]);
>>
>> But the stored value is "" (empty string) rather than 0. Isn't a bit
>> confussing?
>
> inaki,
>
> yes, it is.
>
> have you tried what happens if you explicitly convert the rhs value to
> (int)?

No. I expect it becomes 0. But anyhow it seems for me like a
workaround on top of an unexpected behavior :)


-- 
Iñaki Baz Castillo
<i...@aliax.net>

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to