From: Marco van Wieringen Date: Thu, 10 Feb 2011 15:06:16 +0000 (+0100) Subject: Tweak sql_cmds, remove unreferenced sql and reformat a sql query. X-Git-Tag: Release-7.0.0~1134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84660f13712066eb7ba5e274bdaf8c5f1345f3fc;p=bacula%2Fbacula Tweak sql_cmds, remove unreferenced sql and reformat a sql query. --- diff --git a/bacula/src/cats/sql_cmds.c b/bacula/src/cats/sql_cmds.c index b739d6d966..0327e4bfd5 100644 --- a/bacula/src/cats/sql_cmds.c +++ b/bacula/src/cats/sql_cmds.c @@ -217,11 +217,6 @@ const char *uar_sel_filesetid = "WHERE Job.ClientId=%s " "GROUP BY FileSet"; -/* Find MediaType used by this Job */ -const char *uar_mediatype = - "SELECT MediaType FROM JobMedia,Media WHERE JobMedia.JobId=%s " - "AND JobMedia.MediaId=Media.MediaId"; - /* * Find JobId, FileIndex for a given path/file and date * for use when inserting individual files into the tree. @@ -254,7 +249,7 @@ const char *uar_jobids_fileindex = /* Query to get list of files from table -- presuably built by an external program */ const char *uar_jobid_fileindex_from_table = - "SELECT JobId,FileIndex from %s"; + "SELECT JobId,FileIndex FROM %s"; /* Get the list of the last recent version per Delta with a given jobid list * This is a tricky part because with SQL the result of