From 1a15ffcb21469de2f612c95c4a87c2a3647d6982 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Wed, 7 Apr 2010 16:31:58 +0200 Subject: [PATCH] Make the batch insert functions return bool instead of int. --- bacula/src/cats/cats.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5