From: Alain Spineux Date: Fri, 7 Oct 2022 12:23:34 +0000 (+0200) Subject: fix JobHisto field typo from ReadDevice to LastReadDevice and a missing space X-Git-Tag: Beta-15.0.0~426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e380ae780b8030855b991a2f1c14ad03d87f48f9;p=thirdparty%2Fbacula.git fix JobHisto field typo from ReadDevice to LastReadDevice and a missing space - tests/stats-test was failing --- diff --git a/bacula/src/cats/sql_cmds.c b/bacula/src/cats/sql_cmds.c index 796761591..f45744e49 100644 --- a/bacula/src/cats/sql_cmds.c +++ b/bacula/src/cats/sql_cmds.c @@ -77,13 +77,13 @@ const char *fill_jobhisto = "VolSessionId, VolSessionTime, JobFiles, JobBytes, ReadBytes," "JobErrors, JobMissingFiles, PoolId, FileSetId, PriorJobId, PriorJob, " "PurgedFiles, HasBase, HasCache, Reviewed, Comment, FileTable, " - "isVirtualFull,CompressRatio,Rate,LastReadStorageId,WriteStorageId,ReadDevice,WriteDevice,StatusInfo,Encrypted)" + "isVirtualFull,CompressRatio,Rate,LastReadStorageId,WriteStorageId,LastReadDevice,WriteDevice,StatusInfo,Encrypted)" "SELECT JobId, Job, Name, Type, Level, ClientId, JobStatus," "SchedTime, StartTime, EndTime, RealEndTime, RealStartTime, JobTDate," "VolSessionId, VolSessionTime, JobFiles, JobBytes, ReadBytes," "JobErrors, JobMissingFiles, PoolId, FileSetId, PriorJobId, PriorJob, " "PurgedFiles, HasBase, HasCache, Reviewed, Comment, FileTable, " - "isVirtualFull,CompressRatio,Rate,LastReadStorageId,WriteStorageId,ReadDevice,WriteDevice,StatusInfo,Encrypted" + "isVirtualFull,CompressRatio,Rate,LastReadStorageId,WriteStorageId,LastReadDevice,WriteDevice,StatusInfo,Encrypted " "FROM Job " "WHERE JobStatus IN ('T','W','f','A','E')" "AND NOT EXISTS "