From 24f172ef288ce76d52fd38f5a1e36b7d11374d1f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 15 Apr 2008 18:28:51 +0000 Subject: [PATCH] Add Joao's sql_create change git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6826 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql_create.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bacula/src/cats/sql_create.c b/bacula/src/cats/sql_create.c index 86afb5b835..539ffea884 100644 --- a/bacula/src/cats/sql_create.c +++ b/bacula/src/cats/sql_create.c @@ -741,7 +741,11 @@ bool my_batch_end(JCR *jcr, B_DB *mdb, const char *error) Dmsg0(50, "sql_batch_end started\n"); if (mdb) { +#ifdef HAVE_DBI + mdb->status = (dbi_error_flag)0; +#else mdb->status = 0; +#endif } return true; } -- 2.39.5