From: Eric Bollengier Date: Thu, 7 May 2009 08:00:15 +0000 (+0000) Subject: ebl fix mysql problem with the restore query X-Git-Tag: Release-3.0.2~252 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f707464ac9cfea83c3f320c9adfeb871ee2c8b91;p=bacula%2Fbacula ebl fix mysql problem with the restore query git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8813 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/cgi/bresto.pl b/gui/bweb/cgi/bresto.pl index fe8f3556bb..6984057439 100755 --- a/gui/bweb/cgi/bresto.pl +++ b/gui/bweb/cgi/bresto.pl @@ -868,7 +868,7 @@ sub fill_table_for_restore # for each file of btemp if ($bvfs->dbh_is_mysql()) { $bvfs->dbh_do("CREATE TEMPORARY TABLE btemp2 AS ( -SELECT max(JobId) as JobId, PathId, FilenameId +SELECT max(JobId) as JobId, PathId, FilenameId, FileIndex FROM btemp GROUP BY PathId, FilenameId HAVING FileIndex > 0