[sr-dev] [kamailio/kamailio] Function sql_xquery returns 1 for empty query result. (Issue #3163)

Daniel-Constantin Mierla notifications at github.com
Fri Jul 1 12:31:37 CEST 2022


The C code returns 2 when there is no result coming back from the db server. The docs are misleading or are not sync'ed with the code. There is a db result coming back in this case which includes the columns, just no rows.

For now, you can check if the `$xavp(ra)` is null or not.

We have to make the docs and code coherent in a way or another.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3163#issuecomment-1172199119
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3163/1172199119 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220701/3e2a456e/attachment.htm>


More information about the sr-dev mailing list