Reported By: Heiko Knuettel Reported On: 8/16/2008 For: Version 2.01 Build 4
# 2756CASTing an INTEGER to an INTERVAL Type Causes Error I don't get it how to typecast an integer to an interval. I want to achieve something like the following but it doesn't work.
FUNCTION INCHOUR(IN ts TIMESTAMP, IN h FLOAT)
RETURNS TIMESTAMP
BEGIN
RETURN ts + CAST(CAST(h*60 AS INTEGER) AS INTERVAL MINUTE) ;
END;
ResolutionFixed Problem on 8/17/2008 in version 2.01 build 5
Products AffectedElevateDB 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 VCL Client-Server ElevateDB VCL Client-Server with Source ElevateDB VCL Standard ElevateDB VCL Standard with Source ElevateDB VCL Trial