From: Wolfgang M. <wol...@ex...> - 2005-05-10 19:43:54
|
Hi, the bug is caused by a wrong implementation of org.exist.memtree.ElementImpl.getChildNodes(). I attach a patch. Wolfgang > Hello, > here are the simplest failing `update insert` statement (note the > /root/item/b element 's content): > > before update: > > <root/> > > === > > update insert > <item> > <b/> > <c>asd</c> > <d> > <e/> > </d> > </item> > into /root > > result: > <root> > <item> > <b>asd</b> > <c>asd</c> > <d> > <e/> > </d> > </item> > </root> > > and this one is not failing: > > update insert > <item> > <b/> > <c>asd</c> > </item> > into /root > > result: > <root> > <item> > <b/> > <c>asd</c> > </item> > </root> > > I tryed to find the bug, but w/o any luck as my knowledge of eXist's > internals is somewhere around zero. (maybe > org.exist.xquery.update.Insert.seq2nodeList messes up the structure?) > > eXist-snapshot-20050509.jar > > best, > ampatspell > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |