Icon View Incident Report

Serious Serious
Reported By: Michael Bleijerveld
Reported On: 10/27/2017
For: Version 2.26 Build 5
# 4590 Querying an Updateable View with Sub-Query SELECT Expressions Can Cause AV

The following query on a view causes an access violation:


WHERE NotProcessed is null

Underlying view:

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

Comments Comments
This incident is directly related to incident #4586 and was very similar. The basic issue was that the EDB engine was having difficulties determining when (or when not) to set up special generated columns when complex expressions (like sub-queries) in underlying views need to be surfaced in the outer query for further filtering.

Resolution Resolution
Fixed Problem on 10/27/2017 in version 2.26 build 6

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