From 6b14351eb8ad1667ed4b7d6642e4af4bd47045de Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 4 Mar 2016 17:24:11 +0100 Subject: [PATCH] Fix bconsole "llist job=" output --- bacula/src/cats/sql_list.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bacula/src/cats/sql_list.c b/bacula/src/cats/sql_list.c index 55b6a85a5f..b5a21758fc 100644 --- a/bacula/src/cats/sql_list.c +++ b/bacula/src/cats/sql_list.c @@ -396,40 +396,40 @@ alist *BDB::bdb_list_job_records(JCR *jcr, JOB_DBR *jr, DB_LIST_HANDLER *sendit, } if (jr->Name[0]) { bdb_escape_string(jcr, esc, jr->Name, strlen(jr->Name)); - Mmsg(tmp, " Name='%s' ", esc); + Mmsg(tmp, " Job.Name='%s' ", esc); append_filter(where, tmp); } else if (jr->JobId != 0) { - Mmsg(tmp, " JobId=%s ", edit_int64(jr->JobId, ed1)); + Mmsg(tmp, " Job.JobId=%s ", edit_int64(jr->JobId, ed1)); append_filter(where, tmp); } else if (jr->Job[0] != 0) { bdb_escape_string(jcr, esc, jr->Job, strlen(jr->Job)); - Mmsg(tmp, " Job='%s' ", esc); + Mmsg(tmp, " Job.Job='%s' ", esc); append_filter(where, tmp); } if (type == INCOMPLETE_JOBS && jr->JobStatus == JS_FatalError) { - Mmsg(tmp, " JobStatus IN ('E', 'f') "); + Mmsg(tmp, " Job.JobStatus IN ('E', 'f') "); append_filter(where, tmp); } else if (jr->JobStatus) { - Mmsg(tmp, " JobStatus='%c' ", jr->JobStatus); + Mmsg(tmp, " Job.JobStatus='%c' ", jr->JobStatus); append_filter(where, tmp); } if (jr->JobType) { - Mmsg(tmp, " Type='%c' ", jr->JobType); + Mmsg(tmp, " Job.Type='%c' ", jr->JobType); append_filter(where, tmp); } if (jr->JobErrors > 0) { - Mmsg(tmp, " JobErrors > 0 "); + Mmsg(tmp, " Job.JobErrors > 0 "); append_filter(where, tmp); } if (jr->ClientId > 0) { - Mmsg(tmp, " ClientId=%s ", edit_int64(jr->ClientId, ed1)); + Mmsg(tmp, " Job.ClientId=%s ", edit_int64(jr->ClientId, ed1)); append_filter(where, tmp); } -- 2.39.5