Bugs item #2015135, was opened at 2008-07-10 17:01
Message generated for change (Comment added) made by yingying
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2015135&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/runtime
Group: Pathfinder 0.24
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ying Zhang (yingying)
Assigned to: Ying Zhang (yingying)
Summary: PF: pf:mil() can't deal with nil values in MIL results

Initial Comment:
If the result of the MIL code passed to pf:mil() is a BAT, and it contains nil 
values in its head, or tail, error will happen when translating the MIL result 
into XML elements, in elem_constr():

xquery>pf:mil('var a := new(str,str); a.insert(str_nil, "abc"); return a;')
more><>
MAPI  = [EMAIL PROTECTED]:50000
QUERY = pf:mil('var a := new(str,str); a.insert(str_nil, "abc"); return a;')
ERROR = !ERROR: mposjoin: all BATs in the tail of the third input BAT (ws_item) 
must have a dense head.
        !ERROR: CMDmposjoin: operation failed.
        !ERROR: interpret_params: fetch(param 1): evaluation error.
xquery>pf:mil('var a := new(str,str); a.insert("abc", str_nil); return a;')
more><>
MAPI  = [EMAIL PROTECTED]:50000
QUERY = pf:mil('var a := new(str,str); a.insert("abc", str_nil); return a;')
ERROR = !ERROR: mposjoin: missing matches. The result requires the same number 
of tuples as the first two input arguments: 1 < 2.
        !ERROR: CMDmposjoin: operation failed.
        !ERROR: interpret_params: fetch(param 1): evaluation error.

----------------------------------------------------------------------

>Comment By: Ying Zhang (yingying)
Date: 2008-09-05 18:25

Message:
Logged In: YES 
user_id=341633
Originator: YES

Jan,

Thanks for looking at this. I assigned it to you because cvs said the code
was latestly checked in by
you, but it doesn't have to mean you are responsible for fixing it. I will
try to fix it myself.

Regards,

Jennie

----------------------------------------------------------------------

Comment By: Jan Rittinger (tsheyar)
Date: 2008-09-05 17:06

Message:
Logged In: YES 
user_id=993208
Originator: NO

I'm definitely not responsible for pf:mil and elem_constr() is a
deprecated proc. If you in addition use elem_constr() incorrectly it of
course fails.

What you would need is to turn nil values in ws_mil() into real strings
instead of str(nil).

If you want to use pf:mil please fix it yourself.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2015135&group_id=56967

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to