[sr-dev] git:master:c7d8b8a6: sqlops Document return values for sql_query()

Olle E. Johansson oej at edvina.net
Fri May 27 16:13:54 CEST 2016


Module: kamailio
Branch: master
Commit: c7d8b8a6a05efbcb34b1dceabbd209fef419bfaf
URL: https://github.com/kamailio/kamailio/commit/c7d8b8a6a05efbcb34b1dceabbd209fef419bfaf

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2016-05-27T16:13:42+02:00

sqlops Document return values for sql_query()

---

Modified: modules/sqlops/README
Modified: modules/sqlops/doc/sqlops_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/c7d8b8a6a05efbcb34b1dceabbd209fef419bfaf.diff
Patch: https://github.com/kamailio/kamailio/commit/c7d8b8a6a05efbcb34b1dceabbd209fef419bfaf.patch

---

diff --git a/modules/sqlops/README b/modules/sqlops/README
index ccf03b3..62c6678 100644
--- a/modules/sqlops/README
+++ b/modules/sqlops/README
@@ -248,7 +248,9 @@ if (sql_xquery("ca", "select * from domain", "ra") == 1) {
        the type of the columns. Please note that only these two datatypes
        are supported, other datatypes will/may be converted to string.
 
-   This function can be used from ANY_ROUTE.
+   This function can be used from ANY_ROUTE. Returns -1 on Error, 1 on
+   successful query, 2 if query provided no result set, 3 if result is
+   ignored (no result parameter given)
 
    Example 1.5. sql_pvquery() usage
 ...
diff --git a/modules/sqlops/doc/sqlops_admin.xml b/modules/sqlops/doc/sqlops_admin.xml
index bb9011b..824d7a9 100644
--- a/modules/sqlops/doc/sqlops_admin.xml
+++ b/modules/sqlops/doc/sqlops_admin.xml
@@ -338,7 +338,9 @@ if (sql_xquery("ca", "select * from domain", "ra") == 1) {
 		</listitem>
 		</itemizedlist>
 		<para>
-			This function can be used from ANY_ROUTE.
+			This function can be used from ANY_ROUTE. Returns -1 on Error,
+			1 on successful query, 2 if query provided no result set,
+			3 if result is ignored (no result parameter given)
 		</para>
 		<example>
 		<title><function>sql_pvquery()</function> usage</title>




More information about the sr-dev mailing list