Re: [basex-talk] collection('i_do_not_exist')/users/user[@name=()] is () even if i_do_not_exist does not exit

2023-03-23 Thread Christian Grün
> > Well it is definitly an optimization that is new to BaseX 10. But I think > I found a way to default to "" where I just passed () from a variable > before. > True. With BaseX 10, XQuery compilation was split up into a static (logical) and a dynamic (physical) step to allow for a more fine gran

Re: [basex-talk] collection('i_do_not_exist')/users/user[@name=()] is () even if i_do_not_exist does not exit

2023-03-23 Thread Omar Siam
Well it is definitly an optimization that is new to BaseX 10. But I think I found a way to default to "" where I just passed () from a variable before. Am 23.03.2023 um 15:00 schrieb Christian Grün: Hi again, Omar, The behavior may be surprising, but it's valid: If it can be detected at comp

Re: [basex-talk] collection('i_do_not_exist')/users/user[@name=()] is () even if i_do_not_exist does not exit

2023-03-23 Thread Christian Grün
Hi again, Omar, The behavior may be surprising, but it's valid: If it can be detected at compile time that an expression will never yield results, it can be simplified and rewritten to an empty sequence, no matter if a referenced database may possibly exist at runtime. Hope this helps, Christian

[basex-talk] collection('i_do_not_exist')/users/user[@name=()] is () even if i_do_not_exist does not exit

2023-03-23 Thread Omar Siam
Hi, Either I found an interesting new XQuery feature or a bug: collection('i_do_not_exist')/some/path[@attr=()] retruns the empty sequence whereas collection('i_do_not_exist')/some/path throws an error err:FODC0002 so does collection('i_do_not_exist')/some/path[@attr="i_am_an_attr"] Am I m

Re: [basex-talk] BaseX 10.5: Patch Release

2023-03-23 Thread Christian Grün
Thanks, Omar, the file permissions have been fixed. Looking forward to your next replies to the list, Christian On Thu, Mar 23, 2023 at 1:46 PM Omar Siam wrote: > > Hi, > > Thanks for the new release. Just wanted to try something out with 10.4 > but then I can use 10.5 instead :-) > https://fil

Re: [basex-talk] BaseX 10.5: Patch Release

2023-03-23 Thread Omar Siam
Hi, Thanks for the new release. Just wanted to try something out with 10.4 but then I can use 10.5 instead :-) https://files.basex.org/releases/10.5/BaseX105.zip returns 403 though at the moment. Am 23.03.2023 um 13:42 schrieb Christian Grün: Hi all, A new patch release of BaseX is availabl

[basex-talk] BaseX 10.5: Patch Release

2023-03-23 Thread Christian Grün
Hi all, A new patch release of BaseX is available: https://basex.org It gives you a bunch of new XQuery 4 features, advanced performance tweaks and minor bug fixes. As usual, you can have a look at our GitHub commits for more details: https://github.com/BaseXdb/basex/commits/main Have fun,

[basex-talk] Potential bug in GUI, Unit Tests

2023-03-23 Thread Zimmel, Daniel
Hi, while I am trying to find my way around the Unit Module, I noticed the following unexpected behavior. 0. Using the test example from https://docs.basex.org/wiki/Unit_Module#Query in the GUI 1. changes that are not saved to disk do not get respected - as opposed to other queries 2. pressing