Book a Demo

Author Topic: BUG: Uniqueness Constraints in DB Models  (Read 2362 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
BUG: Uniqueness Constraints in DB Models
« on: April 12, 2007, 12:42:50 pm »
There are a number of BUGS related to the issue of uniqueness in data models.

When a Foreign Key Constraint is defined on a uniquely constrained columnSet in the origin (source) table, the source multiplicity MUST be set to 1.  Similarly, if a FK columnSet is subsequently marked as unique, then the source multiplicity MUST be updated to 1 also.

Removal of the uniqueness constraint MUST reset the source multiplicity to 0..*  (NOT generate an error message such as at present (EA 6.5(805)))

Marking a column as unique subsequent to its creation MUST regenerate a uniqueness constraint.  Taking off the constraint will remove the constraint, but putting it back on doesn't regenerate it.  A subtle consequence of this bug is that indexes that may not be marked as unique MUST be marked as unique if any column in them is unique.  My testing reveals that EA does not currently do this.

After adding a column to an operation as a parameter, it should no longer be available in the dropdown list for that operation.  (Unlike ordinary operations, TABLE operations can/should1 only use the column once.)

Thoughts?   (Votes aren't required - these are DEFECTS)
Paolo
[size=0]©2007 Paolo Cantoni, -Semantica-[/size]

1It is theoretically possible for some operations to redundantly use the same column - for example an index with the same column specified more than once - but this is reductio ad absurdam.
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!