Line numbers of XQuery global variables are out by one
The line number associated with an XQuery global variable declaration is out by one (if the variable is declared on line 4, the value of GlobalVariable.getLineNumber() is 5.) This affects some run-time diagnostics and tracing output.
#1 Updated by Michael Kay almost 4 years ago
- Category set to Diagnostics
- Status changed from New to Resolved
- Fix Committed on Branch 9.7, 9.8 added
Patch being committed on the 9.7 and 9.8 branches. A simple change to XQueryParser.parseVariableDeclaration(), which needs to add 1 to the line number obtained from the tokenizer, as tokenizer line numbers are zero-based.
Please register to edit this issue