From 001ca927e77a22ceba0aede20b12b16298c2698a Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 11 Jan 2007 04:54:24 +0000 Subject: [PATCH] * Fixed postgresql error reported by victor in irc --- base/src/org/compiere/model/MRequestType.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/MRequestType.java b/base/src/org/compiere/model/MRequestType.java index 9475acfd8d..0ad338caac 100644 --- a/base/src/org/compiere/model/MRequestType.java +++ b/base/src/org/compiere/model/MRequestType.java @@ -436,14 +436,15 @@ public class MRequestType extends X_R_RequestType // else if (MGoal.MEASUREDISPLAY_Day.equals(MeasureDisplay)) // ; orderBy = "TRUNC(" + dateColumn + ",'" + trunc + "')"; - groupBy = orderBy + ", 0 "; - sb.append(groupBy) + groupBy = orderBy + ", StatusID "; + sb.append(orderBy) + .append(", 0 as StatusID ") .append("FROM R_Request "); } else { orderBy = "s.SeqNo"; - groupBy = "COALESCE(s.Name,TO_NCHAR('-')), s.R_Status_ID, s.SeqNo "; + groupBy = "COALESCE(s.Name,'-'), s.R_Status_ID, s.SeqNo "; sb.append(groupBy) .append("FROM R_Request LEFT OUTER JOIN R_Status s ON (R_Request.R_Status_ID=s.R_Status_ID) "); }