Icon View Incident Report

Serious Serious
Reported By: Barry McClure
Reported On: 11/17/2012
For: Version 2.11 Build 3
# 3730 Trying to Drop a Column with References to Itself Causes Dependency Error

In table MyTable I have a column called CompanyId that is a GUID and its default is set to:

Default:
IFNULL(CompanyId,fcn_GetActiveCompanyId(),CompanyId);

Basically this default value will update CompanyId with the active company id (set in another table) when the MyTable row is added. (Yes, I could have used a trigger for this, but I wanted this value defined prior to the post event in Delphi).

If I later decide to use EDBMgr to drop the column CompanyId from table MyTable, it complains CompanyId is referenced by CompanyId.

Here is the error message:
ElevateDb Error #201 The column CompanyId in the table MyTable cannot be dropped because it is still referenced by the column CompanyId in the table MyTable.

So when dropping an object like a column, EDB should ignore any references that point to itself.


Resolution Resolution
Fixed Problem on 11/28/2012 in version 2.12 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