diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2019-03-14 20:15:52 +0200 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2019-03-14 20:15:52 +0200 |
commit | f30142e0cbe7ff6dc4339682f66da72cb5fd9428 (patch) | |
tree | 8978a0393cf8fa053b69da1f806d13b27e5199a5 /src/add.c | |
parent | 387b31f293347a8bc05dbd4c5f2d063a7b8bdba9 (diff) | |
download | ck-f30142e0cbe7ff6dc4339682f66da72cb5fd9428.tar.gz ck-f30142e0cbe7ff6dc4339682f66da72cb5fd9428.tar.bz2 ck-f30142e0cbe7ff6dc4339682f66da72cb5fd9428.zip |
Replace form_query with fq
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; |