Icon View Incident Report

Minor Minor
Reported By: Juergen Sawatzki
Reported On: 8/12/2008
For: Version 2.01 Build 4
# 2749 Manual Incorrectly States that SQL/PSM RAISE Statement Can Only Be Used in EXCEPTION Block

I have an important question. The manual is the following:

RAISE

This statement can only be used from within an EXCEPTION block or from within an error trigger. See the CREATE TRIGGER topic for more information on error triggers.

My code is as follows for a Before Insert Trigger, and it works beautifully.

Does not the explanation.

DECLARE fld_namNEW VarChar Default NEWROW.name;

  DECLARE TblCursor CURSOR FOR TblStmt;

 

  PREPARE TblStmt FROM 

   'SELECT * from AB_TCSXMLF where name = '''+fld_namNEW+'''';

 

  OPEN TblCursor;     

    IF (ROWCOUNT(TblCursor) > 0) THEN

      RAISE ERROR CODE 10000 MESSAGE ‘bla bla…….!';

    END IF; 

  CLOSE TblCursor;

  UNPREPARE TblStmt;



Comments Comments
This has now been clarified in the manual.


Resolution Resolution
Fixed Problem on 8/12/2008 in version 2.01 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 VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image