- Open syspopup db on readonly mode
Change-Id: Iee862f58e2285185fd9e35f8295c7204e55a9207
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
#define SP_INFO_TBL "syspopup_info"
#define SP_INFO_TBL_F_NAME "name"
-static sqlite3 *db = NULL;
+static sqlite3 *db;
/* db initialize */
static int __init(void)
return 0;
}
- rc = sqlite3_open(SYSPOPUP_DB_PATH, &db);
+ rc = sqlite3_open_v2(SYSPOPUP_DB_PATH, &db, SQLITE_OPEN_READONLY, NULL);
if (rc != SQLITE_OK) {
_E("Can't open database: %s / %d / %d", sqlite3_errmsg(db),
rc, sqlite3_extended_errcode(db));
static int __fini(void)
{
if (db) {
- sqlite3_close(db);
+ sqlite3_close_v2(db);
db = NULL;
}