Re: [basex-talk] xquery:eval bug?

2016-01-19 Thread Marc van Grootel
uni-konstanz.de >> [mailto:basex-talk-boun...@mailman.uni-konstanz.de] On Behalf Of Christian >> Grün >> Sent: Monday, January 18, 2016 11:32 AM >> To: Marc van Grootel <marc.van.groo...@gmail.com> >> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> >&

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Marc van Grootel
Hi Christian, Seems to work fine with latest snapshot with some straightforward cases but I do get an error in some cases which I cannot understand. Though I appreciate that it may be difficult to support all types of dynamic calls. The error is: [bxerr:BXXQ0001] No updating expression allowed.

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Christian Grün
Hi Marc, It runs fine on my environment. Could you give me some more information on your set up (have you assigned any non-default options)? Christian On Mon, Jan 18, 2016 at 10:07 AM, Marc van Grootel wrote: > Hi Christian, > > Seems to work fine with latest

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Marc van Grootel
: basex-talk-boun...@mailman.uni-konstanz.de [mailto:basex-talk-boun...@mailman.uni-konstanz.de] On Behalf Of Christian Grün Sent: Monday, January 18, 2016 11:32 AM To: Marc van Grootel <marc.van.groo...@gmail.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk]

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Christian Grün
ex-talk-boun...@mailman.uni-konstanz.de > [mailto:basex-talk-boun...@mailman.uni-konstanz.de] On Behalf Of Christian > Grün > Sent: Monday, January 18, 2016 11:32 AM > To: Marc van Grootel <marc.van.groo...@gmail.com> > Cc: BaseX <basex-talk@mailman.uni-konstanz.de> > Subject:

Re: [basex-talk] xquery:eval bug?

2016-01-18 Thread Andy Bunce
Works for me if MIXUPDATES is not true. I have found previously that MIXUPDATES has a lot consequences that are not always desirable or predictable - at least for me. /Andy On 18 January 2016 at 10:31, Christian Grün wrote: > Hi Marc, > > It runs fine on my

Re: [basex-talk] xquery:eval bug?

2016-01-15 Thread Christian Grün
Hi Marc, This was a deliberate restriction: As maps and arrays are function items, and as they can contain references to other functions that have been declared in the evaluated query, it is generally tricky to evaluate and return them dynamically. However, I spent some more thoughts on the

[basex-talk] xquery:eval bug?

2016-01-14 Thread Marc van Grootel
Hi, I'm trying to return a map or an array from xquery:eval. Seems this is not possible, yet the signature says it returns item()* xquery:eval('1 + 1') => 2 xquery:eval('[1,2]') => ERROR: [FOTY0014] Items of type array(*) have no string representation. xquery:eval('map { "x": 10 }')