Icon View Incident Report

Serious Serious
Reported By: Fernando Dias
Reported On: 1/26/2019
For: Version 2.30 Build 2
# 4724 Change Detection Not Working Properly for Temporary Tables

When SQL Statement Cache is turned on, aggregate functions can return a wrong values with temporary tables.

The last SELECT should return 2, but it returns 1.

CREATE TEMPORARY TABLE TmpTbl (X INTEGER) !
INSERT INTO TmpTbl VALUES (1) !
SELECT MAX(X) FROM TmpTbl !
INSERT INTO TmpTbl VALUES (2) !
SELECT MAX(X) FROM TmpTbl !



Comments Comments
The issue was with the flushing of temporary table updates, and did not have anything to do with the statement caching.

The issue was that the temporary table updates weren't incrementing the table update counter properly, so the change detection wasn't working for temporary tables. This bug was introduced in the latter part of last year when the I/O changes were being made to ElevateDB as part of the POSIX port.


Resolution Resolution
Fixed Problem on 1/28/2019 in version 2.30 build 3


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