Hi all, we are rather interested in experimenting with the new facility provided with the latest snapshot mixupdates. I have a question related to the scope of the mixupdates option. For us (using the GUI) neither declaring the option at module level with
declare option db:mixupdates 'true';
nor inlining it with a pragma as in
declare function local:sample() { (# db:mixupdates 'true' #){ let $d := <a><b></b></a> return (replace node $d/b with <d/>, "Success") } };
prevent the compiler from complaining with: "... all expressions must be updating or return an empty sequence".
Instead it works neatly when the option is set in the .basex file. Is setting the option globally for the whole basex instance the only way to enable the compiler for mixed updates? Regards, Marco.