Hi,
I just wanted to ask if the bug I described was fixed in version 6.6.2, because I just tried it with the new version and I still get the same error message and a corruption of the database. Thank you for your support!
Best regards, Thomas
-----Original Message----- From: Leo Wörteler [mailto:lw@basex.org] Sent: Thursday, April 21, 2011 4:37 PM To: thomas@kaltofen.at; Thomas Kaltofen Cc: basex-talk Subject: Re: [basex-talk] Renaming of documents
Hi Thomas,
I could reproduce the bug and we'll fix it soon. Your query however looks a bit strange to me:
Am 21.04.2011 14:31, schrieb Thomas Kaltofen:
insert node collection('db/docb')/rootB after collection('db/doca')/rootA
Your collection looks something like this:
collection(db) | |-- document(doca) | | | `-- <rootA .../> | `-- document(docb) | `-- <rootB .../>
Your query doesn't create a new document node (as XQuery Update doesn't operate on document level) but inserts the <rootB .../> element directly into the first document, which then has two(!) root elements:
collection(db) | |-- document(doca) | | | |-- <rootA .../> | | | `-- <rootB .../> [...]
That's allowed in XQuery Update, but isn't valid XML any more and I can't think of a scenario where it's actually desirable.
Is that what you wanted to do? If not, could you explain in more detail what you intended?
Cheers Leo