]> git.sur5r.net Git - bacula/bacula/commitdiff
Add Joao's sql_create change
authorKern Sibbald <kern@sibbald.com>
Tue, 15 Apr 2008 18:28:51 +0000 (18:28 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 15 Apr 2008 18:28:51 +0000 (18:28 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6826 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/sql_create.c

index 86afb5b83529a2b5a1035198f67f6a30eefe3781..539ffea8840d827cded137dd46b2b6a66cb41b92 100644 (file)
@@ -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;
 }