[OpenSIPS-Devel] [ opensips-Patches-3415487 ] New return value for avp_db_query for empty
SourceForge.net
noreply at sourceforge.net
Thu Dec 22 11:57:53 CET 2011
Patches item #3415487, was opened at 2011-09-29 15:24
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3415487&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Ryan Bullock (rrb3942)
>Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: New return value for avp_db_query for empty
Initial Comment:
This patch causes an empty result for a query to return -2 instead of -1, like all other errors. It allows the script writer to differentiate between a failed query (bad table, bad syntax, etc) and a query that simply had no results.
The reasoning behind this is that sometimes an empty result is acceptable, while a failure for other reasons may not be.
----------------------------------------------------------------------
>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2011-12-22 02:57
Message:
Vlad, please update docs also before closing this.
Thanks and regards,
Bogdan
----------------------------------------------------------------------
Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2011-10-03 04:15
Message:
Hello Ryan,
Thanks for the patch, it has been applied in trunk and 1.7 branch.
Regards,
Vlad
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3415487&group_id=232389
More information about the Devel
mailing list