Module: kamailio
Branch: 5.1
Commit: 9459e4ae1d9599b04ca67f88191cc9a73106965b
URL:
https://github.com/kamailio/kamailio/commit/9459e4ae1d9599b04ca67f88191cc9a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-21T08:29:10+02:00
sqlops: increased the length of printed query part in case of errors
(cherry picked from commit 5f7eee55c648cfa1b5b5662648fc9133daa6d6b6)
---
Modified: src/modules/sqlops/sql_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9459e4ae1d9599b04ca67f88191cc9a…
Patch:
https://github.com/kamailio/kamailio/commit/9459e4ae1d9599b04ca67f88191cc9a…
---
diff --git a/src/modules/sqlops/sql_api.c b/src/modules/sqlops/sql_api.c
index 16492300bc..0e239fb339 100644
--- a/src/modules/sqlops/sql_api.c
+++ b/src/modules/sqlops/sql_api.c
@@ -262,7 +262,7 @@ int sql_do_query(sql_con_t *con, str *query, sql_result_t *res)
if(con->dbf.raw_query(con->dbh, query, &db_res)!=0)
{
LM_ERR("cannot do the query [%.*s]\n",
- (query->len>32)?32:query->len, query->s);
+ (query->len>64)?64:query->len, query->s);
return -1;
}