Skip to content

Commit

Permalink
[dbops] fixed names of script functions
Browse files Browse the repository at this point in the history
they were renamed from avp_db_query() to db_query() during module migration from avpops to dbops
  • Loading branch information
bogdan-iancu committed Feb 27, 2024
1 parent f6400d3 commit 53983b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/dbops/dbops_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,17 @@ int dbops_db_bind(void)
*
* so just dig through the whole script tree
*/
if (is_script_func_used("avp_db_query", 1) ||
is_script_func_used("avp_db_query", 2)) {
if (is_script_func_used("db_query", 1) ||
is_script_func_used("db_query", 2)) {
if (!DB_CAPABILITY(default_db_url->dbf, DB_CAP_RAW_QUERY)) {
LM_ERR("driver for DB URL [default] does not support "
"raw queries!\n");
return -1;
}
}

if (is_script_async_func_used("avp_db_query", 1) ||
is_script_async_func_used("avp_db_query", 2)) {
if (is_script_async_func_used("db_query", 1) ||
is_script_async_func_used("db_query", 2)) {
if (!DB_CAPABILITY(default_db_url->dbf, DB_CAP_ASYNC_RAW_QUERY))
LM_WARN("async() calls for DB URL [default] will work "
"in normal mode due to driver limitations\n");
Expand Down

0 comments on commit 53983b1

Please sign in to comment.