bug in QueryCollection.java example

Tuesday, 31 December 2013 · 2 messages · last reply 11 Jan 2014
M
Morris31 Dec 2013 02:59 #
Hi there I tried out the QueryCollection example from github and discovered there is a bug in line 47
for $doc in collection()
causes [FODC0002] No default collection available. I think it should be
for $doc in collection("Collection")
then the error is gone.
CG
Christian Grün11 Jan 2014 13:20 #
Hi Morris, thanks for your feedback.
Quoted text · Morris · 3 lines
> I tried out the QueryCollection example from github and discovered there is a bug in line 47 > ``` > for $doc in collection()
The original example shouldn’t cause any problems, because the non-argument function call will reference the database that has been created in line 28 (and the code seems in fact to work on my system). Did you modify the code a little? What BaseX version have you been using for testing? Christian

⚡Generated with XQuery