From: Marco van Wieringen Date: Wed, 7 Apr 2010 14:31:58 +0000 (+0200) Subject: Make the batch insert functions return bool instead of int. X-Git-Tag: Release-5.2.1~1519 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ccce95b82058c602627033e7aed0a1c11041702f;p=bacula%2Fbacula Make the batch insert functions return bool instead of int. --- diff --git a/bacula/src/cats/cats.h b/bacula/src/cats/cats.h index 8e25b0f254..6058c56a3f 100644 --- a/bacula/src/cats/cats.h +++ b/bacula/src/cats/cats.h @@ -601,10 +601,10 @@ INGRES_FIELD * my_ingres_fetch_field(B_DB *mdb); void my_ingres_close (B_DB *mdb); int my_ingres_insert_id (B_DB *mdb, const char *query, const char *table_name); -int my_ingres_batch_start(JCR *jcr, B_DB *mdb); -int my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error); +bool my_ingres_batch_start(JCR *jcr, B_DB *mdb); +bool my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error); typedef struct ATTR_DBR ATTR_DBR; -int my_ingres_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar); +bool my_ingres_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar); char *my_ingres_copy_escape(char *dest, char *src, size_t len); extern const char* my_ingres_batch_lock_path_query;