Bugs item #1836980, was opened at 2007-11-23 11:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1836980&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.20 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Maurice van Keulen (mvankeulen) Assigned to: Nobody/Anonymous (nobody) Summary: Error with declared variable in module Initial Comment: (Stable 0.20; SuSe Linux) I tried to declare a variable inside a module and tried to use it in a function of the module. It is as if the variable is empty inside the function. If I use the function outside the module, it appears properly defined. The query below does the same thing inside the module with the test:specialpos function as below it inside the byquery-element. import module namespace test = "http://www.cs.utwente.nl/~keulen" at "/local/keulen/Programming/probprot/monetdb/bugs/bug17mod.xq"; (: change this path :) let $test := (<a/>,<b/>,$test:special,<c/>) return <result> <bymodule>{test:specialpos($test)}</bymodule> <byquery>{for $e at $p in $test where $e is $test:special return $p }</byquery> </result> The results are different: <result><bymodule/><byquery>3</byquery></result> Correct answer should be <result><bymodule>3</bymodule><byquery>3</byquery></result> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1836980&group_id=56967 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
