* Fixed postgresql error reported by victor in irc
This commit is contained in:
parent
321d1c589c
commit
001ca927e7
|
@ -436,14 +436,15 @@ public class MRequestType extends X_R_RequestType
|
||||||
// else if (MGoal.MEASUREDISPLAY_Day.equals(MeasureDisplay))
|
// else if (MGoal.MEASUREDISPLAY_Day.equals(MeasureDisplay))
|
||||||
// ;
|
// ;
|
||||||
orderBy = "TRUNC(" + dateColumn + ",'" + trunc + "')";
|
orderBy = "TRUNC(" + dateColumn + ",'" + trunc + "')";
|
||||||
groupBy = orderBy + ", 0 ";
|
groupBy = orderBy + ", StatusID ";
|
||||||
sb.append(groupBy)
|
sb.append(orderBy)
|
||||||
|
.append(", 0 as StatusID ")
|
||||||
.append("FROM R_Request ");
|
.append("FROM R_Request ");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
orderBy = "s.SeqNo";
|
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)
|
sb.append(groupBy)
|
||||||
.append("FROM R_Request LEFT OUTER JOIN R_Status s ON (R_Request.R_Status_ID=s.R_Status_ID) ");
|
.append("FROM R_Request LEFT OUTER JOIN R_Status s ON (R_Request.R_Status_ID=s.R_Status_ID) ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue