Bugs item #2116209, was opened at 2008-09-17 16:08 Message generated for change (Settings changed) made by lafanasi 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: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Loredana Afanasiev (lafanasi) Assigned to: Stefan Manegold (stmane) 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. ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2008-09-17 16:39 Message: Thanks for the report! I just fixed in the CVS repository for our web site. (In fact, I also fixed your proposed query slightly by adding the required "pf:" namespace prefix to "add-doc()" ;-)). Unfortunately, the fix will only be live once [ 2116269 ] Website fails to build on "Stable" release https://sourceforge.net/tracker/index.php?func=detail&aid=2116269&group_id=56967&atid=482468 is fixed. Stefan ---------------------------------------------------------------------- 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
