Icon View Incident Report

Minor Minor
Reported By: Michael Fullerton
Reported On: 3/21/2011
For: Version 2.05 Build 4
# 3418 Inline CASE Operator Not Performing Type Promotion Properly on Returned Values

Hours is a float field. When the query below is run, Total has decimal values but the day values have the decimal portion truncated.

SELECT WorkDate,
SUM(CASE
  WHEN EXTRACT(DAYOFWEEK FROM WorkDate)=1 THEN HOURS
  ELSE 0
END) AS Mon,
[...]
SUM(CASE
  WHEN EXTRACT(DAYOFWEEK FROM WorkDate)=0 THEN HOURS
  ELSE 0
END) AS Sun, SUM(Hours) AS Total
FROM ETime GROUP BY WorkDate



Resolution Resolution
Fixed Problem on 3/22/2011 in version 2.05 build 5


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB DAC Client-Server
ElevateDB DAC Client-Server with Source
ElevateDB DAC Standard
ElevateDB DAC Standard with Source
ElevateDB DAC Trial
ElevateDB LCL Standard with Source
ElevateDB PHP Standard
ElevateDB PHP Standard with Source
ElevateDB PHP Trial
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image