From f30142e0cbe7ff6dc4339682f66da72cb5fd9428 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Thu, 14 Mar 2019 20:15:52 +0200 Subject: Replace form_query with fq --- src/add.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/add.c') diff --git a/src/add.c b/src/add.c index 6292106..d28c82d 100644 --- a/src/add.c +++ b/src/add.c @@ -20,7 +20,7 @@ static int get_next_valid_id_from_table(DB *db, const char* tableName) { int rc; char sql[STR_M] = ""; - dbh_form_query_select_id_from(sql, tableName); + dbh_fq_select_id_from(sql, tableName); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { @@ -45,7 +45,7 @@ static int insert_to_program_table(DB *db, const char *name) { int rc; char sql[STR_L] = ""; - dbh_form_query_insert_program(sql); + dbh_fq_insert_program(sql); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { @@ -74,7 +74,7 @@ static int insert_to_config_table(DB *db, const char *path, const int secret, co int rc; char sql[STR_L] = ""; - dbh_form_query_insert_config(sql); + dbh_fq_insert_config(sql); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { ERR("Error while preparing insert to config sql."); @@ -150,7 +150,7 @@ static int add_insert_relationship(DB *db, const int pid, const int cid) { int rc; char sql[STR_M] = ""; - dhb_form_query_insert_relationship(sql); + dhb_fq_insert_relationship(sql); rc = sqlite3_prepare_v2(db->ptr, sql, -1, &stmt, 0); if (rc != SQLITE_OK) { db->error = SQL_ERR_SQLITE; -- cgit v1.2.3