A new snapshot is available, in which the bug is fixed.
Thanks, Christian
On Tue, May 26, 2015 at 11:59 AM, Christian Grün christian.gruen@gmail.com wrote:
Confirmed [1]! Will be fixed very soon. In the meanwhile, you can circumvent the buggy behavior by doing without the trailing slashes:
rename /doc/title /doc/title2
Best, Christian
[1] https://github.com/BaseXdb/basex/issues/1148
On Sun, May 24, 2015 at 6:50 PM, Ketill Fenne ketill.fenne@gmail.com wrote:
Hi!
I am running BaseX 8.1.
This is my test case: create database test
add to /doc/title/version=1 c:/temp/xml.xml
Running query: for $doc in (collection('test')) return (base-uri($doc))
Result: test/doc/title/version=1
Executing this command: rename /doc/title/ /doc/title2/
Running query once again: for $doc in (collection('test')) return (base-uri($doc))
Result: test/doc/title2/ersion=1
So, I am losing the "v" in version, that is the first letter after the directory that is renamed, seems to disappear with each rename.
A bug, or improper usage?
Kind regards Ketill Fenne