Module: kamailio
Branch: 4.4
Commit: 9bbe98204295df6a0a2eadc6aaf539c6597f99b5
URL:
https://github.com/kamailio/kamailio/commit/9bbe98204295df6a0a2eadc6aaf539c…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-05-27T16:14:24+02:00
sqlops Document return values for sql_query()
(cherry picked from commit 639574e79200b5ffae4274b862ad595bd209da24)
---
Modified: modules/sqlops/README
Modified: modules/sqlops/doc/sqlops_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/9bbe98204295df6a0a2eadc6aaf539c…
Patch:
https://github.com/kamailio/kamailio/commit/9bbe98204295df6a0a2eadc6aaf539c…
---
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>