Bug in db:rename()
Tuesday, 16 October 2012 · 4 messages · last reply 22 Oct 2012
CK
Charles Kowalski16 Oct 2012 22:20 #
Hi,
Upon executing:
db:rename('dbname', '', 'path')All database data was put under a root collection named 'ath' not the expected 'path'.
The first letter gets chopped, something to do probably with string manipulation and zero string length.
Thanks,
alex
CK
Charles Kowalski16 Oct 2012 22:23 #
Quoted text · Charles Kowalski · 17 lines
On 10/16/2012 11:20 PM, Charles Kowalski wrote: > Hi, > > Upon executing: > > db:rename('dbname', '', 'path') > > All database data was put under a root collection named 'ath' not the > expected 'path'. > > The first letter gets chopped, something to do probably with string > manipulation and zero string length. > > Thanks, > alex > >
To correct my previous description the first letter of every *child* path gets lost ie
db:replace('db', 'test.xml', <root/>)
db:rename('db', '', 'renamed')results in:
'renamed/est.xml'
Thanks,
alex
MS
Michael Seiferle17 Oct 2012 08:23 #
Dear Charles,
Thank you very much for your report; and sorry for this inconvenience. Someone of our team will have a look and we will get back to you ASAP.
Best
Michael
Von meinem iPad gesendet
Quoted text · Charles Kowalski · 30 lines
Am 16.10.2012 um 22:23 schrieb Charles Kowalski <alxarch at gmail.com>: > On 10/16/2012 11:20 PM, Charles Kowalski wrote: >> Hi, >> >> Upon executing: >> >> db:rename('dbname', '', 'path') >> >> All database data was put under a root collection named 'ath' not the >> expected 'path'. >> >> The first letter gets chopped, something to do probably with string >> manipulation and zero string length. >> >> Thanks, >> alex > To correct my previous description the first letter of every *child* path gets lost > > db:replace('db', 'test.xml', <root/>) > db:rename('db', '', 'renamed') > > results in: > 'renamed/est.xml' > > Thanks, > alex > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Charles,
thanks for your observation, which I had added to our issue tracker [1]. It has been fixed in the latest snapshot [2].
Best,
Christian
[1] https://github.com/BaseXdb/basex/issues/583
[2] http://files.basex.org/releases/latest/
Quoted text · Charles Kowalski · 35 lines
On Tue, Oct 16, 2012 at 10:23 PM, Charles Kowalski <alxarch at gmail.com> wrote: > On 10/16/2012 11:20 PM, Charles Kowalski wrote: >> >> Hi, >> >> Upon executing: >> >> db:rename('dbname', '', 'path') >> >> All database data was put under a root collection named 'ath' not the >> expected 'path'. >> >> The first letter gets chopped, something to do probably with string >> manipulation and zero string length. >> >> Thanks, >> alex >> >> > To correct my previous description the first letter of every *child* path > gets lost ie > > db:replace('db', 'test.xml', <root/>) > db:rename('db', '', 'renamed') > > results in: > 'renamed/est.xml' > > > Thanks, > alex > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Written for BaseX 7.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery