void my_ingres_close (B_DB *mdb);
int my_ingres_insert_id (B_DB *mdb, const char *query, const char *table_name);
-bool my_ingres_batch_start(JCR *jcr, B_DB *mdb);
-bool my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error);
+int my_ingres_batch_start(JCR *jcr, B_DB *mdb);
+int my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error);
typedef struct ATTR_DBR ATTR_DBR;
-bool my_ingres_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar);
+int 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
-
-/*
- * Returns true if OK
- * false if failed
- */
-bool my_ingres_batch_start(JCR *jcr, B_DB *mdb)
+int my_ingres_batch_start(JCR *jcr, B_DB *mdb)
{
bool ok;
return ok;
}
-/*
- * Returns true if OK
- * false if failed
- */
-bool my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error)
+int my_ingres_batch_end(JCR *jcr, B_DB *mdb, const char *error)
{
if (mdb) {
mdb->status = 0;
return true;
}
-/*
- * Returns true if OK
- * false if failed
- */
-bool my_ingres_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
+int 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 */
/*