Icon View Incident Report

Serious Serious
Reported By: Tim Young
Reported On: 4/4/2008
For: Version 1.09 Build 1
# 2595 Executing a SELECT * Query Against Multiple Databases Causes a Compilation Error

The last SELECT statement in the following script causes a compiler error when the script is executed.

SCRIPT
BEGIN
   DECLARE ResultCursor CURSOR WITH RETURN FOR ResultStmt;
   USE MemoryDB;
   EXECUTE IMMEDIATE 'CREATE TABLE M1 AS select * from Test.Customer
where State=''CA'' WITH DATA';
   EXECUTE IMMEDIATE 'CREATE TABLE M2 AS select * from Test.Customer
where State=''CA'' WITH DATA';
   USE Test;
   PREPARE ResultStmt FROM 'select * from orders a
inner join MemoryDB.m1 on (a.custno=m1.custno)
inner join MemoryDB.m2 on (a.custno=m2.custno)';
   OPEN ResultCursor;
END



Comments Comments
The cause of the problem is the reference to the different database MemoryDB in the joins for the SELECT statement.


Resolution Resolution
Fixed Problem on 4/6/2008 in version 1.09 build 2


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 VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image