#178 Cannot reuse QueryStaticContext

v7.8
closed
5
2012-10-08
2003-12-08
Michael Kay
No

When using the XQuery Java API, the QueryStaticContext
is not reset for each new query that is compiled. Since
the static context accumulates data about things such
as global variables, namespace declarations, and the
like, this means that arbitrary failures can occur when
the QueryStaticContext is reused.

Fixing this will require some rethinking of the API.
For the time being, a reset() method has been added to
the QueryStaticContext object.

Circumvention: create a new QueryProcessor object, or
at the least a new QueryStaticContext object, for each
new query.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks