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;
}
#ifdef HAVE_BATCH_FILE_INSERT
-int my_ingres_batch_start(JCR *jcr, B_DB *mdb)
+
+/*
+ * Returns true if OK
+ * false if failed
+ */
+bool my_ingres_batch_start(JCR *jcr, B_DB *mdb)
{
bool ok;
return ok;
}
-int my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error)
+/*
+ * Returns true if OK
+ * false if failed
+ */
+bool my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error)
{
if (mdb) {
mdb->status = 0;
return true;
}
-int my_ingres_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
+/*
+ * Returns true if OK
+ * false if failed
+ */
+bool my_ingres_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
{
size_t len;
const char *digest;
return INSERT_DB(jcr, mdb, mdb->cmd);
}
+
#endif /* HAVE_BATCH_FILE_INSERT */
/*