Bugs item #2116209, was opened at 2008-09-17 16:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2116209&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Website
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Loredana Afanasiev (lafanasi)
Assigned to: Sjoerd Mullender (sjoerd)
Summary: document bulk-load query

Initial Comment:
Hi,

the bulk loading query from:

http://monetdb.cwi.nl/projects/monetdb/XQuery/Documentation/Bulk-Loading-a-Collection.html#Bulk-Loading-a-Collection
 

has a couple of problems:
1. $n variable undefined
2. the first argument in the call of add-doc() contains only the path to the 
document, missing the document name.
3. the second argument in the call of add-doc() is of type "string?" instead of 
required "string". This is an error output by the static type checker of the 
algebra version compiler, which is the default compiler.

Here is the query I used to successfully bulk load my data:

for $d in doc("/tmp/dir.xml")//doc 
return 
  add-doc(fn:concat($d/@path,$d/@name), fn:string($d/@name), "my-coll", 0)


groetjes,
l.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2116209&group_id=56967

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to