From: Eric Bollengier Date: Thu, 17 Sep 2009 13:56:04 +0000 (+0200) Subject: small fix X-Git-Tag: Release-7.0.0~2620 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4e17ec6f998577c72e7abc9ad159f6d9d6333ad;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 "