Hi Rob,

That was definitely a bug, caused by an atomized value that was cached and not invalidated during the update operation.

Thanks for the observation, a new snapshot is online [1].
Christian




On Wed, Nov 2, 2022 at 9:01 AM Rob Stapper <r.stapper@lijbrandt.nl> wrote:

Hi,

 

I stumbled upon this behavior. Is this a bug? I’m still using Basex version 9.7.

 

Code[1]:

let      $e := <E>abc</E> update { replace value of node . with ./data() || "def" }

return ( $e, $e/data() )

 

Result:

<E>abcdef</E>

abc

 

Expecting:

<E>abcdef</E>

abcdef

 

[1] attachment: “replace-value-of-bug.xq”

 

Pleased to hear from you,

 

Rob Stapper

 

 

Sent from Mail for Windows

 


Virus-free.www.avast.com