Blob Blame History Raw
From: Razvan Crainea <razvan@opensips.org>
Date: Thu, 9 Nov 2017 10:15:56 +0200
Subject: [PATCH] db_sqlite: let the DB interface determine the capabilities

This prevens the module from advertising bogus capabilities - in this
case the sqlite module was saying that it has the ASYNC RAW queries
support, although it didn't.

Reported by Wilhelm Lundgren on list

(cherry picked from commit b9ca13a643e4c21aeba1fa9d88c57a054a290f64)

diff --git a/modules/db_sqlite/db_sqlite.c b/modules/db_sqlite/db_sqlite.c
index 73098a02e..7feb8edd9 100644
--- a/modules/db_sqlite/db_sqlite.c
+++ b/modules/db_sqlite/db_sqlite.c
@@ -120,7 +120,6 @@ int db_sqlite_bind_api(const str* mod, db_func_t *dbb)
 	dbb->last_inserted_id = db_last_inserted_id;
 	dbb->insert_update    = db_insert_update;
 
-	dbb->cap = DB_CAP_ALL ^ DB_CAP_ASYNC_RAW_QUERY;
 	return 0;
 }