IDEMPIERE-4181 Replace CASE WHEN .. END CASE with CASE WHEN ... END
This commit is contained in:
parent
8d7c201eb5
commit
bfc5b13575
|
@ -139,7 +139,7 @@ public class ServerProcessCtl implements Runnable {
|
||||||
//
|
//
|
||||||
String sql = "SELECT p.Name, p.ProcedureName,p.ClassName, p.AD_Process_ID," // 1..4
|
String sql = "SELECT p.Name, p.ProcedureName,p.ClassName, p.AD_Process_ID," // 1..4
|
||||||
+ " p.isReport,p.IsDirectPrint,p.AD_ReportView_ID,p.AD_Workflow_ID," // 5..8
|
+ " p.isReport,p.IsDirectPrint,p.AD_ReportView_ID,p.AD_Workflow_ID," // 5..8
|
||||||
+ " CASE WHEN COALESCE(p.Statistic_Count,0)=0 THEN 0 ELSE p.Statistic_Seconds/p.Statistic_Count END CASE," // 9
|
+ " CASE WHEN COALESCE(p.Statistic_Count,0)=0 THEN 0 ELSE p.Statistic_Seconds/p.Statistic_Count END," // 9
|
||||||
+ " p.IsServerProcess, p.JasperReport, p.AD_Process_UU " // 10..12
|
+ " p.IsServerProcess, p.JasperReport, p.AD_Process_UU " // 10..12
|
||||||
+ "FROM AD_Process p"
|
+ "FROM AD_Process p"
|
||||||
+ " INNER JOIN AD_PInstance i ON (p.AD_Process_ID=i.AD_Process_ID) "
|
+ " INNER JOIN AD_PInstance i ON (p.AD_Process_ID=i.AD_Process_ID) "
|
||||||
|
@ -148,7 +148,7 @@ public class ServerProcessCtl implements Runnable {
|
||||||
if (!Env.isBaseLanguage(Env.getCtx(), "AD_Process"))
|
if (!Env.isBaseLanguage(Env.getCtx(), "AD_Process"))
|
||||||
sql = "SELECT t.Name, p.ProcedureName,p.ClassName, p.AD_Process_ID," // 1..4
|
sql = "SELECT t.Name, p.ProcedureName,p.ClassName, p.AD_Process_ID," // 1..4
|
||||||
+ " p.isReport, p.IsDirectPrint,p.AD_ReportView_ID,p.AD_Workflow_ID," // 5..8
|
+ " p.isReport, p.IsDirectPrint,p.AD_ReportView_ID,p.AD_Workflow_ID," // 5..8
|
||||||
+ " CASE WHEN COALESCE(p.Statistic_Count,0)=0 THEN 0 ELSE p.Statistic_Seconds/p.Statistic_Count END CASE," // 9
|
+ " CASE WHEN COALESCE(p.Statistic_Count,0)=0 THEN 0 ELSE p.Statistic_Seconds/p.Statistic_Count END," // 9
|
||||||
+ " p.IsServerProcess, p.JasperReport, p.AD_Process_UU " // 10..12
|
+ " p.IsServerProcess, p.JasperReport, p.AD_Process_UU " // 10..12
|
||||||
+ "FROM AD_Process p"
|
+ "FROM AD_Process p"
|
||||||
+ " INNER JOIN AD_PInstance i ON (p.AD_Process_ID=i.AD_Process_ID) "
|
+ " INNER JOIN AD_PInstance i ON (p.AD_Process_ID=i.AD_Process_ID) "
|
||||||
|
|
Loading…
Reference in New Issue