Simple delete bug
Wednesday, 30 March 2022 · 3 messages
CG
Hi Jonathan,
Quoted text · Jonathan Robie · 1 line
> delete //m/@n
This may be surprising, but your expression is a valid query: It’s a path expression starting with an initial child::delete step.
Best,
Christian
JR
Jonathan Robie30 Mar 2022 17:19 #
Expressions like this fail silently without raising an error in BaseXGUI:
delete //m/@n
Of course, it should be:
delete nodes //m/@n
But there should be an error to remind me ;->
Jonathan
JR
DOH.
Yeah, you're right.
Jonathan
Quoted text · Christian Grün · 12 lines
On Wed, Mar 30, 2022 at 9:25 AM Christian Grün <christian.gruen at gmail.com> wrote: > Hi Jonathan, > > > delete //m/@n > > This may be surprising, but your expression is a valid query: It’s a > path expression starting with an initial child::delete step. > > Best, > Christian >
Written for BaseX 9.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery