[sr-dev] [kamailio/kamailio] strange result from avp_db_query (#792)
mtryfoss
notifications at github.com
Wed Sep 21 11:09:27 CEST 2016
Kamailio version 4.4.2.
Consider this logic:
$avp(s:testvar) = 'test';
avp_db_query("select value from test where id = 1","$avp(s:testvar)");
I don't know if this is intended behaviour. If row exists but "value" field is empty (not NULL), $avp(s:testvar) still seems to contain 'test' as value after the query. I think it should be ''.
This can be confusing.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/792
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160921/6a0393d3/attachment.html>
More information about the sr-dev
mailing list