Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25986

Modified Files:
      Tag: XQuery_0-24
        replace-corrupts.SF-1758902.stable.out 
        replace-corrupts.SF-1758902.xq.in 
Log Message:

extended test for
[ 1981827 ] PF/alg: if-then-else evaluation differs from MPS?
https://sourceforge.net/tracker/index.php?func=detail&aid=1981827&group_id=56967&atid=482468


U replace-corrupts.SF-1758902.stable.out
Index: replace-corrupts.SF-1758902.stable.out
===================================================================
RCS file: 
/cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/replace-corrupts.SF-1758902.stable.out,v
retrieving revision 1.3
retrieving revision 1.3.10.1
diff -u -d -r1.3 -r1.3.10.1
--- replace-corrupts.SF-1758902.stable.out      11 Sep 2007 15:52:58 -0000      
1.3
+++ replace-corrupts.SF-1758902.stable.out      2 Jun 2008 08:22:18 -0000       
1.3.10.1
@@ -31,6 +31,14 @@
 <objectnote user="hans" unixtime="1180000000" xid="4">This is my first 
note</objectnote>
 </notes></XQueryResult>
 <?xml version="1.0" encoding="utf-8"?>
+<XQueryResult></XQueryResult>
+<?xml version="1.0" encoding="utf-8"?>
+<XQueryResult>false</XQueryResult>
+<?xml version="1.0" encoding="utf-8"?>
+<XQueryResult>NO</XQueryResult>
+<?xml version="1.0" encoding="utf-8"?>
+<XQueryResult><objectnote unixtime="1185198696" user="unknown" 
xid="14">nootje<original/></objectnote></XQueryResult>
+<?xml version="1.0" encoding="utf-8"?>
 <XQueryResult><notes>
 <objectnote user="hans" unixtime="1180000000" xid="4">This is my first 
note</objectnote>
 <objectnote unixtime="1185198696" user="unknown" 
xid="14">nootje<original/></objectnote></notes></XQueryResult>

U replace-corrupts.SF-1758902.xq.in
Index: replace-corrupts.SF-1758902.xq.in
===================================================================
RCS file: 
/cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/replace-corrupts.SF-1758902.xq.in,v
retrieving revision 1.2
retrieving revision 1.2.12.1
diff -u -d -r1.2 -r1.2.12.1
--- replace-corrupts.SF-1758902.xq.in   26 Jul 2007 13:34:45 -0000      1.2
+++ replace-corrupts.SF-1758902.xq.in   2 Jun 2008 08:22:19 -0000       1.2.12.1
@@ -6,6 +6,23 @@
 <>
 let $doc := doc("notes_consumer02.xml")
 let $orig := $doc/notes/[EMAIL PROTECTED]"14"]
+return $orig
+<>
+let $doc := doc("notes_consumer02.xml")
+let $orig := $doc/notes/[EMAIL PROTECTED]"14"]
+return exists($orig)
+<>
+let $doc := doc("notes_consumer02.xml")
+let $orig := $doc/notes/[EMAIL PROTECTED]"14"]
+return if (exists($orig)) then ( "Yes" ) else ( "NO" )
+<>
+let $doc := doc("notes_consumer02.xml")
+let $orig := $doc/notes/[EMAIL PROTECTED]"14"]
+let $on := element objectnote { attribute xid {"14"}, attribute user 
{"unknown"}, attribute unixtime {"1185198696"}, text {"nootje"}, element 
original { $orig } }
+return $on
+<>
+let $doc := doc("notes_consumer02.xml")
+let $orig := $doc/notes/[EMAIL PROTECTED]"14"]
 let $on := element objectnote { attribute xid {"14"}, attribute user 
{"unknown"}, attribute unixtime {"1185198696"}, text {"nootje"}, element 
original { $orig } }
 return if (exists($orig)) then (do replace $orig with $on) else (do insert $on 
as last into $doc/notes)
 <>


-------------------------------------------------------------------------
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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to