From c7e7424737edf93f657d6b236822b43d2a0d2166 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 23 Mar 2007 22:01:14 +0000 Subject: [PATCH] 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 --- bacula/src/cats/sql_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5