Module: sip-router Branch: master Commit: edc4d902135d484d02272a64b7f27447fcb6854e URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=edc4d902...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Wed Mar 14 10:01:00 2012 +0100
sqlops: check for DB_CAP_RAW_QUERY of DB connection
- the module is using raw query capability and DB_CAP_ALL does not include it - reported by Pedro Vico, FS#208
---
modules_k/sqlops/sql_api.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/sqlops/sql_api.c b/modules_k/sqlops/sql_api.c index c02ac81..77ff97f 100644 --- a/modules_k/sqlops/sql_api.c +++ b/modules_k/sqlops/sql_api.c @@ -151,7 +151,7 @@ int sql_connect(void) sc->name.len, sc->name.s); return -1; } - if (!DB_CAPABILITY(sc->dbf, DB_CAP_ALL)) + if (!DB_CAPABILITY(sc->dbf, DB_CAP_RAW_QUERY)) { LM_ERR("database module does not have DB_CAP_ALL [%.*s]\n", sc->name.len, sc->name.s);