Icon View Incident Report

Serious Serious
Reported By: Volker Nabholz [gripsware gmbh]
Reported On: 3/4/2019
For: Version 2.28 Build 7
# 4731 Using 'NULL' String as Variable Default Value in SQL/PSM Results in NULL Evaluation

Strings containing the Word 'NULL' are causing the Engine to fail.

A bool comparison of ('NULL' <> 'TEST') results in Errors.
Our triggers stopped working as we initialized a few strings with 'NULL'.

Example 1:

SCRIPT
BEGIN
DECLARE MyString1 VARCHAR(50) DEFAULT 'NULL';
DECLARE MyString2 VARCHAR(50) DEFAULT 'TEST';
DECLARE Comp Bool DEFAULT false;           

SET LOG MESSAGE TO 'Comp: '+CAST(Comp AS VARCHAR);
SET LOG MESSAGE TO 'MyString1: '+MyString1; // << no output?
SET LOG MESSAGE TO 'MyString2: '+MyString2;

SET Comp = MyString1 <> MyString2;

SET LOG MESSAGE TO 'Comp: '+CAST(Comp AS VARCHAR); // << no output?
SET LOG MESSAGE TO 'MyString1: '+MyString1; // no output?
SET LOG MESSAGE TO 'MyString2: '+MyString2;
END

Example 2:


SCRIPT
BEGIN
 DECLARE MyString1 VARCHAR(50) DEFAULT 'NULL';
 DECLARE MyString2 VARCHAR(50) DEFAULT 'TEST';
 DECLARE Comp Bool DEFAULT false;
 SET Comp = MyString1 <> MyString2;
 RAISE ERROR CODE 10000 MESSAGE 'Comp Result: ' + CAST(Comp AS VARCHAR); // << No output created
END



Resolution Resolution
Fixed Problem on 3/6/2019 in version 2.31 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