Opened 14 years ago

Closed 14 years ago

#243 closed enhancement (fixed)

SDF: support making value constraints more restrictive

Reported by: brentrobinson Owned by: brentrobinson
Priority: minor Milestone: 3.3.0
Component: SDF Provider Version: 3.3.0
Severity: 2 Keywords: SDF Apply Schema Value Constraint restrictive
Cc: External ID:

Description

The SDF Provider's FdoIApplySchema currently disallows the following for data properties with values:

  • Add a new constraint
  • Modify an existing constraint by making it more restrictive.

Under this enhancement, the above 2 types of modifications will be supported. It is possible for existing property values to violate the new/modified constraint. All data values will be checked. If any do violate the constraint, and exception will be thrown similar to:

Cannot modify constraint for property 'constraints:CDataBaseClass.StringList'; existing data value 'close' violates new constraint

Change History (2)

comment:1 by brentrobinson, 14 years ago

Status: newassigned

comment:2 by brentrobinson, 14 years ago

Resolution: fixed
Status: assignedclosed

Revision: 3744 Author: brentrobinson Date: 2:59:07 PM, Monday, January 28, 2008 Message: Ticket#243: SDF: allow making value constraints more restrictive.


Modified : /trunk/Fdo/UnitTest/SchemaTest.cpp Modified : /trunk/Fdo/UnitTest/SchemaTest.h Modified : /trunk/Fdo/Unmanaged/Inc/Common/Compare.h Modified : /trunk/Fdo/Unmanaged/Inc/Fdo/Schema/MergeContext.h Modified : /trunk/Fdo/Unmanaged/Inc/Fdo/Schema/PropertyValueConstraint.h Modified : /trunk/Fdo/Unmanaged/Inc/Fdo/Schema/PropertyValueConstraintList.h Modified : /trunk/Fdo/Unmanaged/Inc/Fdo/Schema/PropertyValueConstraintRange.h Modified : /trunk/Fdo/Unmanaged/Src/Fdo/Expression/DateTimeValue.cpp Modified : /trunk/Fdo/Unmanaged/Src/Fdo/Schema/MergeContext.cpp Modified : /trunk/Fdo/Unmanaged/Src/Fdo/Schema/PropertyValueConstraintList.cpp Modified : /trunk/Fdo/Unmanaged/Src/Fdo/Schema/PropertyValueConstraintRange.cpp Modified : /trunk/Fdo/Unmanaged/Src/Message/FDOMessage.mc Modified : /trunk/Providers/SDF/Src/Provider/SdfSchemaMergeContext.cpp Modified : /trunk/Providers/SDF/Src/Provider/SdfSchemaMergeContext.h Modified : /trunk/Providers/SDF/Src/UnitTest/ConstraintsTest.cpp Modified : /trunk/Providers/SDF/Src/UnitTest/ConstraintsTest.h Modified : /trunk/Utilities/TestCommon/Inc/TestCommonConstraints.h Modified : /trunk/Utilities/TestCommon/Src/TestCommonConstraints.cpp Modified : /trunk/Utilities/TestCommon/Src/TestCommonMiscUtil.cpp

Note: See TracTickets for help on using tickets.