Project

Profile

Help

Bug #2532

closed

Query Initializer hook invoked too late to set ModuleURIResolver

Added by Michael Kay almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Command Line
Sprint/Milestone:
Start date:
2015-12-07
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7
Fix Committed on Branch:
9.6, 9.7
Fixed in Maintenance Release:
Platforms:

Description

When running XQuery from the command line and using the -init option to supply a user-written initialization method, the s9api XQueryCompiler is created before the initialization hook is called, which means that options set in the configuration (such as the ModuleURIResolver) which are destined for the XQueryCompiler arrive too late to have any effect.

Patch committed on the 9.6 and 9.7 branches, and unit test command/Query/testQueryInitializer added.

Please register to edit this issue

Also available in: Atom PDF