[sr-dev] git:master:5f7eee55: sqlops: increased the length of printed query part in case of errors
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jun 14 08:05:48 CEST 2018
Module: kamailio
Branch: master
Commit: 5f7eee55c648cfa1b5b5662648fc9133daa6d6b6
URL: https://github.com/kamailio/kamailio/commit/5f7eee55c648cfa1b5b5662648fc9133daa6d6b6
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-06-14T08:04:31+02:00
sqlops: increased the length of printed query part in case of errors
---
Modified: src/modules/sqlops/sql_api.c
---
Diff: https://github.com/kamailio/kamailio/commit/5f7eee55c648cfa1b5b5662648fc9133daa6d6b6.diff
Patch: https://github.com/kamailio/kamailio/commit/5f7eee55c648cfa1b5b5662648fc9133daa6d6b6.patch
---
diff --git a/src/modules/sqlops/sql_api.c b/src/modules/sqlops/sql_api.c
index 21fbfa950f..b33bc0d0e6 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;
}
More information about the sr-dev
mailing list