char q[BUFFLEN] = {0};
char *value = NULL;
char query[BUFFLEN] = {0};
+ char execquery[BUFFLEN] = {0};
SearchCbData cbData;
cbData.resList = resultList;
_INFO("AsmStorage::searchData:: query = [%s]", query);
- int ret = sqlite3_exec(dbHandle, query, searchItemCb, &cbData, &errMsg);
+ sqlite3_mprintf(execquery, query);
+ int ret = sqlite3_exec(dbHandle, execquery, searchItemCb, &cbData, &errMsg);
_INFO("AsmStorage::searchData:: ERROR MSG : [%s]", errMsg);
CATCH_IF_FAIL(ret == SQLITE_OK);
char *errMsg = NULL;
char q[BUFFLEN] = {0};
char *value = NULL;
+ char execquery[BUFFLEN] = {0};
char query[BUFFLEN] = {0};
RET_IF_FAIL(parcel != NULL, SQLITE_ERROR);
int ret = 0;
_ERR("AUTHLIST does not allow deletion of entries");
goto CATCH;
}
-
- ret = sqlite3_exec(dbHandle, query, NULL, 0, &errMsg);
+ sqlite3_mprintf(execquery, query);
+ ret = sqlite3_exec(dbHandle, execquery, NULL, 0, &errMsg);
_INFO("AsmStorage::deleteData:: ERROR MSG : [%s]", errMsg);
CATCH_IF_FAIL(ret == SQLITE_OK);