Browse code

sqlops: increased the length of printed query part in case of errors

(cherry picked from commit 5f7eee55c648cfa1b5b5662648fc9133daa6d6b6)
(cherry picked from commit 9459e4ae1d9599b04ca67f88191cc9a73106965b)

Daniel-Constantin Mierla authored on 14/06/2018 06:04:31
Showing 1 changed files
... ...
@@ -262,7 +262,7 @@ int sql_do_query(sql_con_t *con, str *query, sql_result_t *res)
262 262
 	if(con->dbf.raw_query(con->dbh, query, &db_res)!=0)
263 263
 	{
264 264
 		LM_ERR("cannot do the query [%.*s]\n",
265
-				(query->len>32)?32:query->len, query->s);
265
+				(query->len>64)?64:query->len, query->s);
266 266
 		return -1;
267 267
 	}
268 268