aboutsummaryrefslogtreecommitdiffstats
path: root/src/delete.c
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2019-03-14 20:15:52 +0200
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2019-03-14 20:15:52 +0200
commitf30142e0cbe7ff6dc4339682f66da72cb5fd9428 (patch)
tree8978a0393cf8fa053b69da1f806d13b27e5199a5 /src/delete.c
parent387b31f293347a8bc05dbd4c5f2d063a7b8bdba9 (diff)
downloadck-f30142e0cbe7ff6dc4339682f66da72cb5fd9428.tar.gz
ck-f30142e0cbe7ff6dc4339682f66da72cb5fd9428.tar.bz2
ck-f30142e0cbe7ff6dc4339682f66da72cb5fd9428.zip
Replace form_query with fq
Diffstat (limited to 'src/delete.c')
-rw-r--r--src/delete.c10
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");