[OpenSIPS-Devel] [ opensips-Patches-3415487 ] New return value for avp_db_query for empty
SourceForge.net
noreply at sourceforge.net
Fri Sep 30 00:24:21 CEST 2011
Patches item #3415487, was opened at 2011-09-29 18:24
Message generated for change (Tracker Item Submitted) made by rrb3942
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: None
Priority: 5
Private: No
Submitted By: Ryan Bullock (rrb3942)
Assigned to: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
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