Consultor Eletrônico



Kbase P101981: No check for data-relations when sending a dataset as a parameter BY-REFERENCE
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/06/2005
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.0B

SYMPTOM(s):

No check for data-relations when sending a dataset as a parameter BY-REFERENCE

2 datasets are defined with the same temp-table but not with the same data-relations

No error, although it would be expected

CAUSE:

Known issue, expected behavior at the time of writing. When a dataset is sent by reference then it is shared in the two procedure and the dataset defined in the called procedure is used only allow static programming but it does not actually handle the data. The compiler does not do anything with the relations so it does not matter that the relations of the 2 datasets do not match. However, development has acknowledged that a more strict check is a valid need, so at some point in the future a new dataset property might be implemented to require exact matches on relations (e.g. hDset:strict-parameter-checking = true).

FIX:

Make sure that the dataset sent as a parameter by reference is defined with the wanted data-relations, keeping in mind that the dataset defined in the called procedure is actually a dummy dataset, which does not handle the data and has to be defined with temp-tables with same signature as these of the sent dataset.