]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix mysql problem with the restore query
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 7 May 2009 08:00:15 +0000 (08:00 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 7 May 2009 08:00:15 +0000 (08:00 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8813 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/cgi/bresto.pl

index fe8f3556bb431e9249a7eb85c7c646e8651fb9f9..6984057439bfe0a2a0c9d44eb1e8e66fd3cc675c 100755 (executable)
@@ -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