Bugs item #1836980, was opened at 2007-11-23 11:54 Message generated for change (Comment added) made by stmane 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: (zombie: Pathfinder 0.20) Status: Closed >Resolution: Fixed Priority: 4 Private: No Submitted By: Maurice van Keulen (mvankeulen) >Assigned to: Peter Boncz (boncz) Summary: XQ: 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> ---------------------------------------------------------------------- >Comment By: Stefan Manegold (stmane) Date: 2009-04-07 12:53 Message: completed administration. ---------------------------------------------------------------------- Comment By: Peter Boncz (boncz) Date: 2009-04-07 10:26 Message: will not be fixed (MPS) ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2008-01-22 15:10 Message: Logged In: YES user_id=572415 Originator: NO Lowered priority as it only fails with the "soon-to-be-history" MPS version http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/variable_in_module.SF-1836980.out.00.html but works fine with the "soo-to-be-standard" ALG version http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder_algebra/.mTests103/GNU.64.64.d-Fedora6/tests_BugTracker/variable_in_module.SF-1836980.out.00.html ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2007-11-23 13:39 Message: Logged In: YES user_id=572415 Originator: NO For convenience: tagged Summary with "XQ:" ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2007-11-23 13:36 Message: Logged In: YES user_id=572415 Originator: NO Added test in pathfinder/tests/BugTracker/Tests/variable_in_module.SF-1836980* Fails as reported with the MPS back-end, but works fine with the Algebra back-end! ;-) ---------------------------------------------------------------------- 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: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
