Icon View Incident Report

Serious Serious
Reported By: Chris B
Reported On: 11/17/2010
For: Version 2.04 Build 4
# 3349 Inserting Rows From a Derived Table with ORDER BY and RANGE Causes Incorrect Inserted Rows

Using a derived table to insert records into a temporary table doesn't cause an error. However, incorrect records are inserted into the temp table.

CREATE TEMPORARY TABLE MYTEST
(ordering_field int,
ProductCode int)!

INSERT INTO MYTEST (ordering_field, ProductCode)
select ordering_field, ProductCode
FROM
(SELECT
 SUM(SaleHistory.Quantity) AS ordering_field,
 Product.Code AS ProductCode
 FROM Product
 INNER JOIN SaleHistory
    ON Product.Code = SaleHistory.Code
 GROUP BY Product.Code
 ORDER BY ordering_field DESC
 RANGE 1 TO 10) TBL234!



Resolution Resolution
Fixed Problem on 11/18/2010 in version 2.05 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