Icon View Incident Report

Minor Minor
Reported By: Tiago Ameller
Reported On: 3/24/2012
For: Version 2.08 Build 3
# 3574 Cannot Use Variables in SQL/PSM FETCH ABSOLUTE Clause

I need to randomly get some rows from a cursor. FETCH ABSOLUTE would be the key to avoid more complicated ways. But, it seems only works with constant offsets! The following SQL causes this error:

ElevateDB Error #700 An error was found in the statement at line 31 and column 25 (Expected constant value expression but instead found "PREMIO_")

DECLARE PREMIO_ INTEGER;
...
SET PREMIO_ = RAND(_PREMIOS)+1;
FETCH ABSOLUTE PREMIO_ FROM CURSOR_ ('ID') INTO TARJETA_;



Resolution Resolution
Fixed Problem on 3/25/2012 in version 2.09 build 1


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