Bugs item #1982310, was opened at 2008-06-02 18:03
Message generated for change (Comment added) made by tsheyar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1982310&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/tests
Group: Pathfinder 0.24
>Status: Closed
>Resolution: Fixed
Priority: 6
Private: No
Submitted By: Stefan Manegold (stmane)
Assigned to: Jan Rittinger (tsheyar)
Summary: PF/alg: "boolean (())" skipped in complex query

Initial Comment:
With the Algebra back-end, "boolean (())" seems to be skipped in the 
else-branch of the following query; a stand-alone "boolean (())" or a "boolean 
($b)" in the else-branch do work fine.

See also
http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_XQuery/bool7.out.00.html

========
$ mclient -lx -G -s'boolean (())'
--------
false
========
$ mclient -lx -G -s'for $b in (1,0) return if ($b) then for $a in 
(0,1,2,"foo","",0.0,1.3,boolean(1),boolean(0),<a/>) return boolean($a) else 
boolean (())'
--------
false,
true,
true,
true,
false,
false,
true,
true,
false,
true
         <== "false" missing !
========
$ mclient -lx -G -s'for $b in (1,0) return if ($b) then for $a in 
(0,1,2,"foo","",0.0,1.3,boolean(1),boolean(0),<a/>) return boolean($a) else 
boolean (())' | wc 
--------
     10      10      63
========
$ mclient -lx -s'for $b in (1,0) return if ($b) then for $a in 
(0,1,2,"foo","",0.0,1.3,boolean(1),boolean(0),<a/>) return boolean($a) else 
boolean (())' | wc 
--------
     11      11      70
========
$ mclient -lx -G -s'for $b in (1,0) return if ($b) then for $a in 
(0,1,2,"foo","",0.0,1.3,boolean(1),boolean(0),<a/>) return boolean($a) else 
boolean ($b)'
false,
true,
true,
true,
false,
false,
true,
true,
false,
true,
false
========
$ mclient -lx -G -s'for $b in (1,0) return if ($b) then for $a in 
(0,1,2,"foo","",0.0,1.3,boolean(1),boolean(0),<a/>) return boolean($a) else 
boolean ($b)' | wc
--------
     11      11      70
========


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

>Comment By: Jan Rittinger (tsheyar)
Date: 2008-06-03 09:21

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

Cause: Incorrect domain property inference for union+empty_tbl. Fixed in
CVS.

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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to