BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
678 stars 268 forks source link

XQuery: Simplify inlined non-deterministic code #2139

Closed ChristianGruen closed 2 years ago

ChristianGruen commented 2 years ago

The following query should be simplified to 1:

let $a := db:get('input')
let $b := 1
return $b

As we now have two compilation steps, db:get is treated as non-deterministic in the first step:

prof:void(db:get('input')), 1