Module: kamailio
Branch: master
Commit: 32bf3eb2b27fbefe991a4aabc829f21ecc4e8829
URL:
https://github.com/kamailio/kamailio/commit/32bf3eb2b27fbefe991a4aabc829f21…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-09-16T13:00:20+02:00
sqlops: return 1 on success for kemi sql_xquery()
- GH #2856
---
Modified: src/modules/sqlops/sql_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/32bf3eb2b27fbefe991a4aabc829f21…
Patch:
https://github.com/kamailio/kamailio/commit/32bf3eb2b27fbefe991a4aabc829f21…
---
diff --git a/src/modules/sqlops/sql_api.c b/src/modules/sqlops/sql_api.c
index d67f30ccef..63c035ca89 100644
--- a/src/modules/sqlops/sql_api.c
+++ b/src/modules/sqlops/sql_api.c
@@ -954,7 +954,7 @@ int sqlops_do_xquery(sip_msg_t *msg, str *scon, str *squery, str
*xavp)
if(sql_exec_xquery(msg, con, squery, xavp)<0)
goto error;
- return 0;
+ return 1;
error:
return -1;
}