t...@x-query.com says too late for 3.1 (for a two-liner) which is fair
enough.
The Michael Kay version of the 2-liner looks like:
return map:merge(
for $k in distinct-values($maps!map:keys(.))
return map:entry($k, $maps?($k))
)
Your version looks like:
map:merge(
for $key in
Using the latest DBA Web app from 8.2.1 when I get an error from a query
run from the Query panel the only response I get on that page is
[FORG0001] Cannot cast to xs:double: .
Using this query:
declare %rest:path('invalid') function local:err() {
1 + a/
};
result{local:err()}/result
I get
If you can point me at the relevant code I'll put aside my distaste for
Javascript and take a look.
Cheers,
E
Eliot Kimber, Owner
Contrext, LLC
http://contrext.com
On 7/20/15, 10:32 AM, Christian Grün christian.gr...@gmail.com wrote:
Ok, I got it. The full error is returned to the
Hi Graydon,
The solutions look similar indeed. Here is an more verbose writing, I
hope it's helpful?
map:merge(
(: select distinct keys :)
for $key in distinct-values(
for $map in $maps return map:keys($map)
)
(: create new map entry with all values :)
return map {
Ok, I got it. The full error is returned to the client, but it is then
chopped in the Javascript code. If you are interested, you could have
a look at it?
On Mon, Jul 20, 2015 at 4:55 PM, Eliot Kimber ekim...@contrext.com wrote:
Using the latest DBA Web app from 8.2.1 when I get an error from
If you can point me at the relevant code I'll put aside my distaste for
Javascript and take a look.
It should be here:
https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/webapp/dba/static/js.js#L79-L85
Seems most of us share the distaste; otherwise, this code snippet
would
6 matches
Mail list logo