Hi Thomas,
Am 21.04.2011 12:54, schrieb Thomas Kaltofen:
The XQuery returns an error "[XQST0054] Circular variable definition?", although the query contains no variables.
I think that's the standard error message for stack overflow errors, it should probably be reworded to say that more clearly.
However, the query still adds parts of docb into doca and after the query the database is corrupt. [...] With simple XML data in doca and docb (e.g. <a><b>test</b></a>) the steps work properly, however with my XML dataset it does not work.
That definitely sounds like a stack overflow in the middle of an update, which is a Bad Thing (TM)... I'll definitely look into that ASAP. A workaround until it's fixed would be to increase the JVM's stack size with *java -Xss1m*.
I can supply a sample dataset so you can reproduce the problem, but I would prefer to not post my dataset to the mailing list if possible.
Sample data would greatly simplify the debugging process. You can send it to support@basex.org, we will keep it confidential.
Danke schonmal und Grüße zurück vom Bodensee, Leo