From e56abf682d5a14d229e7655c5062cefdf2e7ac06 Mon Sep 17 00:00:00 2001 From: lsv Date: Tue, 18 Jan 2022 21:22:01 +0500 Subject: [PATCH] fix --- pro_scheduler/pgproJob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pro_scheduler/pgproJob.cpp b/pro_scheduler/pgproJob.cpp index 67f3488..a6e0dbf 100644 --- a/pro_scheduler/pgproJob.cpp +++ b/pro_scheduler/pgproJob.cpp @@ -363,7 +363,7 @@ void pgproJob::ShowStatistics(frmMain *form, ctlListView *statistics) if (wxDTend.IsEmpty()) wxDTend=DateToAnsiStr(wxDateTime::Now()); sql=wxT("select log_time,detail critical,message,hint from pg_log l where l.log_time>'") + DateToAnsiStr(GetStarted())+ wxT("'::timestamp - interval '1min' and l.log_time<='")+ wxDTend + - wxT("'::timestamp + interval '1min' and detail::int>=0"); + wxT("'::timestamp + interval '1min' and case when length(detail)>2 then 20 else detail::int end >=0"); //+GetTryName()+wxT("'"); pgSet *stats = GetConnection()->ExecuteSet(sql); wxString critical;