Closed RieksJ closed 3 months ago
This issue is stale because it has been open 5 years with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
Ampersand-v3.16.0 [feature/578-navbar:c3acfc3d1] can compile the following script:
Here is the JSON that is generated for the rule
SetConcept OrgUnit
:Note that while
SRC
andTGT
are both of typeBusinessFunction
, the SQL code is created assuming that it isOrgUnit
, as it says:The result of this is that while violations of the rule are properly signalled,
SRC I
will erroneously return a_NULL
, preventing the violation from ever being fixed. Note that the alternative rule, which explicitly mentions the concept to be used, does not have this error.So either this is a bug in the type checker, or it is a bug in the code generator.
Note: If I replace
SRC I
withSRC I[BusinessFunction]
, the error is gone (so that's the workaround).