Icon View Incident Report

Serious Serious
Reported By: Heiko Knuettel
Reported On: 4/20/2009
For: Version 2.02 Build 11
# 2982 Calling the Same UDF More Than Once in the Same Expression Can Cause Incorrect Results

The following UDF and SQL gives me an 0, 1, error, when it should return 0, 1, correct.

create function floattostr(in value float)
returns varchar(20)
begin
  return replace('.' with ',' in if(value is null then '' else cast(value as varchar(20))));
end;

select floattostr(0), floattostr(1), if(floattostr(0)<>floattostr(1) then 'correct' else
'error') from table



Resolution Resolution
Fixed Problem on 4/21/2009 in version 2.02 build 12


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 VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image