]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix batch insert for mysql and sqlite
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 23 Mar 2007 22:01:14 +0000 (22:01 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 23 Mar 2007 22:01:14 +0000 (22:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4400 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/sql_create.c

index 57cdf34ee63e614505f8e0e4aed091dfd2d93778..39d0dc42828947530e33c125339402455b023314 100644 (file)
@@ -719,8 +719,8 @@ bool my_batch_insert(JCR *jcr, B_DB *mdb, ATTR_DBR *ar)
    }
 
    len = Mmsg(mdb->cmd, "INSERT INTO batch VALUES (%u,%s,'%s','%s','%s','%s')",
-              ar->FileIndex, edit_int64(ar->JobId,ed1), mdb->path
-              mdb->fname, ar->attr, digest);
+              ar->FileIndex, edit_int64(ar->JobId,ed1), mdb->esc_name2
+              mdb->esc_name, ar->attr, digest);
 
    return INSERT_DB(jcr, mdb, mdb->cmd);
 }