put-value() bug (?)

Wednesday, 11 January 2023 · 2 messages · last reply 12 Jan 2023
HR
Hans-Jürgen Rennau11 Jan 2023 12:17 #
Hello, after the following call basex "db:put-value('foofoo', doc('yogi.html')//@href/string(), 'hrefs')" I expect the resource "hrefs" to contain strings - but db:get-value('foofoo', 'hrefs') returns a sequence of attributes. Kind regards, Hans-Jürgen
CG
Christian Grün12 Jan 2023 12:23 #
…and thanks for the pointer, the bug has been fixed [1,2]. Best, Christian [1] https://github.com/BaseXdb/basex/commit/fea3e1d44315c2962e925c4b44d19ba05b59cd4e [2] https://files.basex.org/releases/latest/
Quoted text · Hans-Jürgen Rennau · 12 lines
On Wed, Jan 11, 2023 at 12:17 PM Hans-Jürgen Rennau <hjrennau at gmail.com> wrote: > > Hello, > > after the following call > > basex "db:put-value('foofoo', doc('yogi.html')//@href/string(), 'hrefs')" > > I expect the resource "hrefs" to contain strings - but db:get-value('foofoo', 'hrefs') returns a sequence of attributes. > > Kind regards, > Hans-Jürgen

⚡Generated with XQuery