This release includes two bug fixes:
1) Relvar definitions with both a defined heading and an INIT section did not correctly map the INIT expression to the heading if the order of attributes differed. E.g., in the following, company_name and department_name wound up reversed:
Code: Select all
VAR Department BASE RELATION {company_name CHAR, department_name CHAR}
INIT (RELATION {
TUPLE {department_name "Research and Development",
company_name "General Electronics"},
TUPLE {department_name "Management",
company_name "Ads are Us"},
TUPLE {department_name "Management",
company_name "General Electronics"}})
KEY {department_name, company_name};
This release also includes one minor enhancement:
1) Given the following:
Code: Select all
TYPE Point POSSREP { x INTEGER , y INTEGER };
TYPE Line UNION;
TYPE Line2p IS { Line POSSREP { p1 Point , p2 Point } };
TYPE LineInfinite IS {
Line POSSREP { points RELATION { p Point } } };
Code: Select all
RELATION {
TUPLE {x 1, y Line2p(Point(2, 2), Point(3,3))},
TUPLE {x 2, y LineInfinite(relation {
TUPLE {p Point(3,4)}, TUPLE {p Point(4,2)},
TUPLE {p Point(6,7)}})}
}
Code: Select all
RELATION {x INTEGER, y Line} {
TUPLE {x 1, y Line2p(Point(2, 2), Point(3,3))},
TUPLE {x 2, y LineInfinite(relation {
TUPLE {p Point(3,4)}, TUPLE {p Point(4,2)},
TUPLE {p Point(6,7)}})}
}