Icon View Incident Report

Minor Minor
Reported By: Fernando Dias
Reported On: 6/17/2013
For: Version 2.12 Build 2
# 3835 Creating Foreign-Key Constraints in Non-Temporary Tables that Reference Temporary Tables is Allowed

Trying to open or drop a temporary table with foreign key constraints generates an "ElevateDB Error #401 The table <Number> does not exist in the schema Default".

CREATE TABLE "Contas" (
   "CodConta" VARCHAR(6) COLLATE "PTG" NOT NULL,
   "Descricao" VARCHAR(30) COLLATE "PTG",
   CONSTRAINT "PimaryKey" PRIMARY KEY ("CodConta")
) !

CREATE TEMPORARY TABLE "TmpTes"(
   "NumMov" INTEGER NOT NULL,
   "CodConta" VARCHAR(6) COLLATE "PTG",
   CONSTRAINT "PK" PRIMARY KEY ("NumMov"),
   CONSTRAINT "FKCodConta" FOREIGN KEY ("CodConta") REFERENCES "Contas" ("CodConta")
) !

SELECT * FROM TmpTes !



Comments Comments
ElevateDB should have been preventing the FK constraint from being created at all.


Resolution Resolution
Fixed Problem on 6/18/2013 in version 2.13 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