Просмотр исходного кода

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
Daniel-Constantin Mierla 13 лет назад
Родитель
Сommit
edc4d90213
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules_k/sqlops/sql_api.c

+ 1 - 1
modules_k/sqlops/sql_api.c

@@ -151,7 +151,7 @@ int sql_connect(void)
 					sc->name.len, sc->name.s);
 					sc->name.len, sc->name.s);
 			return -1;
 			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",
 			LM_ERR("database module does not have DB_CAP_ALL [%.*s]\n",
 					sc->name.len, sc->name.s);
 					sc->name.len, sc->name.s);