Skip to content

Commit

Permalink
sqlops: more verbose log message if execution of query fails
Browse files Browse the repository at this point in the history
(cherry picked from commit 941fbda)
  • Loading branch information
miconda committed Mar 10, 2015
1 parent 4ae4e5f commit bb81ec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/sqlops/sql_api.c
Expand Up @@ -261,7 +261,8 @@ 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\n");
LM_ERR("cannot do the query [%.*s]\n",
(query->len>32)?32:query->len, query->s);
return -1;
}

Expand Down

0 comments on commit bb81ec0

Please sign in to comment.