diff options
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |