diff options
Diffstat (limited to 'src/delete.c')
-rw-r--r-- | src/delete.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/delete.c b/src/delete.c index 1e5a5ed..46bcdc0 100644 --- a/src/delete.c +++ b/src/delete.c @@ -20,7 +20,7 @@ static int delete_prog(DB *db, int pid) { int rc; char sql[STR_M] = ""; - dbh_form_query_delete_x_from_y(sql, COL_PROGRAM_ID, TBL_PROGRAM); + dbh_fq_delete_x_from_y(sql, COL_PROGRAM_ID, TBL_PROGRAM); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { @@ -41,7 +41,7 @@ static int delete_conf(DB *db, int cid) { int rc; char sql[STR_M] = ""; - dbh_form_query_delete_x_from_y(sql, COL_CONFIG_ID, TBL_CONFIG); + dbh_fq_delete_x_from_y(sql, COL_CONFIG_ID, TBL_CONFIG); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { @@ -67,7 +67,7 @@ static int remove_conf_rel(DB *db, int cid) { int pid = get_pid_from_cid(db, cid); char sql[STR_M] = ""; - dbh_form_query_delete_x_from_y(sql, COL_REL_CONFIG_ID, TBL_REL); + dbh_fq_delete_x_from_y(sql, COL_REL_CONFIG_ID, TBL_REL); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { return -1; @@ -88,7 +88,7 @@ static int remove_all_configs(DB *db, int pid) { int rc; char sql[STR_M] = ""; - dbh_form_query_select_from_joined_eq(sql, COL_REL_CONFIG_ID, COL_REL_PROGRAM_ID); + dbh_fq_select_from_joined_eq(sql, COL_REL_CONFIG_ID, COL_REL_PROGRAM_ID); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { return -2; @@ -120,7 +120,7 @@ static int get_cid_from_pname_and_basename(DB *db, const char *pName, const char strcat(condition, "."); strcat(condition, COL_PROGRAM_NAME); - dbh_form_query_select_from_joined_eq(sql, selection, condition); + dbh_fq_select_from_joined_eq(sql, selection, condition); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { ERR("while preparing get_cid_from_pname_and_basename"); |