Use argument binding for query

This commit is contained in:
topjohnwu
2025-01-02 01:04:44 -08:00
committed by John Wu
parent 2722875190
commit 8e1a44e7eb
6 changed files with 115 additions and 115 deletions

View File

@@ -222,7 +222,7 @@ static bool ensure_data() {
LOGI("denylist: initializing internal data structures\n");
default_new(pkg_to_procs_);
bool res = db_exec("SELECT * FROM denylist", [](StringSlice columns, DbValues &data) {
bool res = db_exec("SELECT * FROM denylist", {}, [](StringSlice columns, DbValues &data) {
const char *package_name;
const char *process;
for (int i = 0; i < columns.size(); ++i) {