Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory 
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv32570/tests/BugTracker/Tests

Added Files:
        copybug.SF-2642003.xq.in 
Log Message:
propagated changes of Friday Feb 27 2009 - Saturday Feb 28 2009
from the Feb2009 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/02/27 - sjoerd: tests/BugTracker/Tests/copybug.SF-2642003.xq.in,1.1.2.1
Fixed bug [ 2642003 ] XQUF replace insert cycle corrupts database.
Added test.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--- NEW FILE: copybug.SF-2642003.xq.in ---
pf:add-doc("$TSTSRCDIR/testdoc.SF.2642003.xml","testdoc.SF.2642003.xml",10)
<>

doc("testdoc.SF.2642003.xml") 
<>

let $doc := doc("testdoc.SF.2642003.xml") 
let $path := $doc/reports/fold...@name='builtin'] 
let $bm := $path/report-definiti...@name="Cookies"] 
let $topath := $doc/reports/fold...@name='admin'] 
let $copy_bm := element report-definition { 
  $bm/@*[not(name()='name')], 
  attribute name {'Cookies'}, 
  $bm/* 
} 
return do insert $copy_bm as last into $topath 

<>


doc("testdoc.SF.2642003.xml") 
<>

let $doc := doc("testdoc.SF.2642003.xml") 
let $path := $doc/reports/fold...@name='admin'] 
let $bm := $path/report-definiti...@name="Cookies"] 
let $new_bm := element report-definition { 
  attribute name {"Cookies"}, 
  attribute project {"*"}, 
  attribute shared {"true"}, 
  $bm/content, 
  element description {"Reports cookies as a table and as details."}, 
  element expertnote {"Copied this report template to user admin for testing 
purposes."} 
} 
return do replace $bm with $new_bm 

<>


doc("testdoc.SF.2642003.xml") 
<>

let $doc := doc("testdoc.SF.2642003.xml") 
let $path := $doc/reports/fold...@name='admin'] 
let $bm := $path/report-definiti...@name="Cookies"] 
let $topath := $doc/reports/fold...@name='admin'] 
let $copy_bm := element report-definition { 
  $bm/@*[not(name()='name')], 
  attribute name {'CopyOfCookies'}, 
  $bm/* 
} 
return do insert $copy_bm as last into $topath 

<>

doc("testdoc.SF.2642003.xml") 
<>

pf:del-doc("testdoc.SF.2642003.xml")


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to