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>
Module: kamailio
Branch: master
Commit: c7d8b8a6a05efbcb34b1dceabbd209fef419bfaf
URL: https://github.com/kamailio/kamailio/commit/c7d8b8a6a05efbcb34b1dceabbd209f…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)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/c7d8b8a6a05efbcb34b1dceabbd209f…
Patch: https://github.com/kamailio/kamailio/commit/c7d8b8a6a05efbcb34b1dceabbd209f…
---
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>
there is define in uac_reg.c (define reg_db_set_attr(attr, pos)) which may generate logs like this:
> empty value not allowed for column[2]='l_domain' - ignoring record
really, record was added, so it should be converted to WARNING or it is neсessary add any more restrict logic
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/643