Icon View Incident Report

Serious Serious
Reported By: Michael Bleijerveld
Reported On: 10/18/2017
For: Version 2.26 Build 4
# 4586 Views that Select From Updateable Views with Sub-Query Expressions in SELECT List Can Cause AV

Today I have encountered a strange issue when opening a view in ElevateDB manager (latest version).

ElevateDB Error #9999 Access Violation at address....

Other views can be opened without any issues.

Source view:

CREATE VIEW "VW_CHECK_COMPLETED_JOBS" AS
SELECT JJ.OrderID, (
SELECT count(orderid) FROM jobtracking JT
INNER JOIN jobtrackingdetails JTD
ON JTD.orderid=JT.orderid
WHERE JTD.status < 2 AND JTD.orderid=JJ.orderid 
GROUP BY orderid
)
AS NotProcessed
FROM jobtracking JJ

View that causes AV:

CREATE VIEW "VW_COMPLETED_JOBS" AS
SELECT OrderID, OrderLineID, SectionID, ProcessedOn, UserID, Status FROM VW_CHECK_COMPLETED_JOBS CCJ
INNER JOIN jobtrackingdetails JTD
ON JTD.orderid=CCJ.orderid
WHERE NotProcessed is null



Comments Comments
The issue was caused by the fix introduced in incident report #4527 Queries with Sensitive Result Sets Improperly Evaluating SELECT Expressions During WHERE Execution.


Resolution Resolution
Fixed Problem on 10/19/2017 in version 2.26 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 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