Bugs item #2015232, was opened at 2008-07-10 18:54
Message generated for change (Comment added) made by yingying
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2015232&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/compiler
Group: Pathfinder 0.24
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ying Zhang (yingying)
>Assigned to: Ying Zhang (yingying)
Summary: PF: pf:mil() prints garbage if MIL result is 'nil'
Initial Comment:
If the evaluation of the MIL code passed to pf:mil() results in a 'nil' value,
pf:mil() will print garbage:
xquery>pf:mil('var a := new (void,oid);')
more><>
""
I think the problem is in the MPS translation of pf:mil():
{ # translate pf:mil (string) as item*
if (count(loop000) != 1) ERROR("pf:mil cannot be called from within a for-
loop");
kind := ELEM;
item := ws_mil(ws, item_str_.fetch(0));
if (type(item) = str) {
item := addValues(str_values,item);
kind := STR;
}
kind := set_kind(WS,kind);
iter := item.materialize(ipik).project([EMAIL PROTECTED]);
ipik := iter;
} # end of translate fn:mil (string) as item*
Note that the return value of ws_mil is not checked if it is a 'nil'.
Jennie
----------------------------------------------------------------------
>Comment By: Ying Zhang (yingying)
Date: 2008-07-10 19:04
Message:
Logged In: YES
user_id=341633
Originator: YES
Test added:
pathfinder/tests/BugTracker/Tests/pfmil_prints_garbage.SF-2015232
I have also checked in a fix.
Jennie
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2015232&group_id=56967
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs