From: Eric Bollengier Date: Thu, 17 Sep 2009 13:56:04 +0000 (+0200) Subject: small fix X-Git-Tag: Release-5.0.0~303 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2de0e76b44e0732ea5f269726d1163890ff47027;p=bacula%2Fbacula small fix --- diff --git a/bacula/src/cats/sql_cmds.c b/bacula/src/cats/sql_cmds.c index 9f7687cd8e..41520c9e7e 100644 --- a/bacula/src/cats/sql_cmds.c +++ b/bacula/src/cats/sql_cmds.c @@ -478,9 +478,9 @@ const char *select_recent_version_with_basejob[4] = { "WHERE BaseFiles.JobId IN (%s) " ") AS tmp GROUP BY PathId, FilenameId " ") AS T1 " -"WHERE (Job.JobId IN ( - SELECT DISTINCT BaseJobId FROM BaseFiles WHERE JobId IN (%s)) - OR Job.JobId IN (%s)) " +"WHERE (Job.JobId IN ( " + "SELECT DISTINCT BaseJobId FROM BaseFiles WHERE JobId IN (%s)) " + "OR Job.JobId IN (%s)) " "AND Job.JobId = File.JobId " "AND Job.JobTDate = T1.JobTDate " "AND File.PathId = T1.PathId " @@ -517,9 +517,9 @@ const char *select_recent_version_with_basejob[4] = { "WHERE BaseFiles.JobId IN (%s) " ") AS tmp GROUP BY PathId, FilenameId " ") AS T1 " -"WHERE (Job.JobId IN ( - SELECT DISTINCT BaseJobId FROM BaseFiles WHERE JobId IN (%s)) - OR Job.JobId IN (%s)) " +"WHERE (Job.JobId IN ( " + "SELECT DISTINCT BaseJobId FROM BaseFiles WHERE JobId IN (%s)) " + "OR Job.JobId IN (%s)) " "AND Job.JobId = File.JobId " "AND Job.JobTDate = T1.JobTDate " "AND File.PathId = T1.PathId " @@ -542,9 +542,9 @@ const char *select_recent_version_with_basejob[4] = { "WHERE BaseFiles.JobId IN (%s) " ") AS tmp GROUP BY PathId, FilenameId " ") AS T1 " -"WHERE (Job.JobId IN ( - SELECT DISTINCT BaseJobId FROM BaseFiles WHERE JobId IN (%s)) - OR Job.JobId IN (%s)) " +"WHERE (Job.JobId IN ( " + "SELECT DISTINCT BaseJobId FROM BaseFiles WHERE JobId IN (%s)) " + "OR Job.JobId IN (%s)) " "AND Job.JobId = File.JobId " "AND Job.JobTDate = T1.JobTDate " "AND File.PathId = T1.PathId "