From: Eric Bollengier Date: Fri, 23 Mar 2007 22:01:14 +0000 (+0000) Subject: ebl fix batch insert for mysql and sqlite X-Git-Tag: Release-7.0.0~6725 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7e7424737edf93f657d6b236822b43d2a0d2166;p=bacula%2Fbacula ebl fix batch insert for mysql and sqlite git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4400 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/sql_create.c b/bacula/src/cats/sql_create.c index 57cdf34ee6..39d0dc4282 100644 --- a/bacula/src/cats/sql_create.c +++ b/bacula/src/cats/sql_create.c @@ -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); }