From: Kern Sibbald Date: Mon, 1 Mar 2010 16:12:39 +0000 (+0100) Subject: Tweak SQL for future additions X-Git-Tag: Release-5.2.1~1659 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f9a38c943959555ea5eca45ad5f7d76a0cc7b648;p=bacula%2Fbacula Tweak SQL for future additions --- diff --git a/bacula/src/cats/sql_find.c b/bacula/src/cats/sql_find.c index e492035a51..ee3948b642 100644 --- a/bacula/src/cats/sql_find.c +++ b/bacula/src/cats/sql_find.c @@ -211,7 +211,7 @@ db_find_failed_job_since(JCR *jcr, B_DB *mdb, JOB_DBR *jr, POOLMEM *stime, int & db_lock(mdb); /* Differential is since last Full backup */ Mmsg(mdb->cmd, -"SELECT Level FROM Job WHERE JobStatus!='T' AND Type='%c' AND " +"SELECT Level FROM Job WHERE JobStatus NOT IN ('T') AND Type='%c' AND " "Level IN ('%c','%c') AND Name='%s' AND ClientId=%s " "AND FileSetId=%s AND StartTime>'%s' " "ORDER BY StartTime DESC LIMIT 1",