|
From: <et...@us...> - 2011-09-28 12:38:02
|
Revision: 4459
http://mxquery.svn.sourceforge.net/mxquery/?rev=4459&view=rev
Author: etterth
Date: 2011-09-28 12:37:56 +0000 (Wed, 28 Sep 2011)
Log Message:
-----------
- insert into as first now inserts sequences of nodes in the correct order
Modified Paths:
--------------
trunk/MXQuery/xqib_src/ch/ethz/mxquery/update/store/domImpl/NodeStore.java
Modified: trunk/MXQuery/xqib_src/ch/ethz/mxquery/update/store/domImpl/NodeStore.java
===================================================================
--- trunk/MXQuery/xqib_src/ch/ethz/mxquery/update/store/domImpl/NodeStore.java 2011-09-28 10:05:07 UTC (rev 4458)
+++ trunk/MXQuery/xqib_src/ch/ethz/mxquery/update/store/domImpl/NodeStore.java 2011-09-28 12:37:56 UTC (rev 4459)
@@ -265,7 +265,7 @@
if (tok == null)
throw new MXQueryException("NodeStore::insertIntoAsFirst", "invalid id", null);
List<Node> newnodes = createNodesFromStore(store);
- for (int i=0;i<newnodes.size();i++){
+ for (int i=newnodes.size()-1;i>=0;i--){
tok.getNode().insertFirst(newnodes.get(i));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|