]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/sql_cmds.c
Pool + label cleanups from bug reports
[bacula/bacula] / bacula / src / dird / sql_cmds.c
index 247cf509244fe1968da87f8c519cd214991984de..26afbc4e9f9f401223f79f7472300c2af52e309d 100644 (file)
@@ -315,6 +315,7 @@ const char *uar_jobid_fileindex =
    "AND Path.Path='%s' "
    "AND Filename.Name='%s' "
    "AND Client.Name='%s' "
+   "AND Job.ClientId=Client.ClientId "
    "AND Path.PathId=File.PathId "
    "AND Filename.FilenameId=File.FilenameId "
    "ORDER BY Job.StartTime DESC LIMIT 1";