Opened 19 years ago
Closed 19 years ago
#359 closed defect (fixed)
Problem creating series at global scope.
Reported by: | jimarin | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Kernel | Version: | head |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
Hi,
the problem (is this a problem?) can be summarized as follows:
Create a series with the same name as other created with DBSeries at global
scope (GlobalizeSeries = 1) does not produce a warning and priorizes series
created with DBSeries at evaluating.
So:
assuming:
a ToGetSerie3Od function that does get a series from the database with DBSeries.
a ToExtendSer6Beg function that does extend the series from the left till TheBegin.
then series a produced by code:
Serie Pri_AvgLit_Coc_MGro_Swe_Sek_445 =
ToExtendSer6Beg(
ToGetSerie3Od("Pri_AvgLit_Coc_MGro_Swe_Sek_445", "1", ?)
);
Serie a = Pri_AvgLit_Coc_MGro_Swe_Sek_445 +3;
will have initial date set to that of the series contained in the database
(other than TheBegin hopefully).
We feel that at least an error or warning should have been issued.
Codes for the functions can be provided.
Best regards,
jima
Change History (3)
comment:1 Changed 19 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 19 years ago by
Status: | new → assigned |
---|
comment:3 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Bug has been fixed in CVS
In function static BSyntaxObject* CreateObject, the evaluator of expressions like
type var_name = expression
checks if exists an object named var_name and then evaluates the expression.
If a global serie named exactly as var_name is created while expression is
being evaluated, after the check has been passed ok, no error is generated.
Solution is very simple, first step must be evaluating expression and second
one must be the checking non existence of var_name
We are wortknig about this bug
Tahnks t oreport it