Module: kamailio
Branch: 5.5
Commit: 667eed709ac31589d6ed0c3bd1003babdc1152a1
URL:
https://github.com/kamailio/kamailio/commit/667eed709ac31589d6ed0c3bd1003ba…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-03-24T14:22:34Z
carrierroute: remove redundant capabilities check, related to commit cf147ab7888c4e2
(cherry picked from commit f44e93a4171668d1c1182b186bea8c41db0a9300)
(cherry picked from commit 7fcfc9ef6d624d7c817c83b5bb8008638d387e78)
---
Modified: src/modules/carrierroute/cr_db.c
---
Diff:
https://github.com/kamailio/kamailio/commit/667eed709ac31589d6ed0c3bd1003ba…
Patch:
https://github.com/kamailio/kamailio/commit/667eed709ac31589d6ed0c3bd1003ba…
---
diff --git a/src/modules/carrierroute/cr_db.c b/src/modules/carrierroute/cr_db.c
index 0e59a681e4..04e3659dfe 100644
--- a/src/modules/carrierroute/cr_db.c
+++ b/src/modules/carrierroute/cr_db.c
@@ -335,11 +335,6 @@ int load_route_data_db(struct route_data_t * rd) {
return -1;
}
- if (!DB_CAPABILITY(carrierroute_dbf, DB_CAP_RAW_QUERY)) {
- LM_ERR("Database does not support required raw queries capability\n");
- return -1;
- }
-
if (DB_CAPABILITY(carrierroute_dbf, DB_CAP_FETCH)) {
if (carrierroute_dbf.query(carrierroute_dbh, NULL, NULL, NULL, (db_key_t *) columns,
0,
columns_load_num, NULL, NULL) < 0) {