Bug #658
closedDefault collation ignored
0%
Description
SourceForge user: mhkay
When a function call (such as distinct-values() or
compare()) takes a collation as an optional argument,
and the collation argument is omitted, the default
collation in the static context is used only in the
case where all the arguments of the function call are
known statically. In other cases, the Unicode codepoint
collation is used.
Source code fix: replace the module
net.sf.saxon.functions.CollatingFunction with the new
version attached.
Files
Updated by Anonymous almost 19 years ago
SourceForge user: mhkay
Logged In: YES
user_id=251681
Applying this correction reveals another bug that was
previously masked. The class
net.sf.saxon.functions.CodepointEqual.java incorrectly
inherits from CollatingFunction. The effect of this error is
that the last argument is now (after the changes to
CollatingFunction) treated as a collation URI, and typically
reports an error saying that this collation is unknown.
Source fix: on line 14 of this file, delete "extends
CollatingFunction".
Updated by Anonymous almost 19 years ago
SourceForge user: mhkay
Logged In: YES
user_id=251681
Sorry, a typo: in the previous comment, the patch should be:
on line 14 of net.sf.saxon.functions.CodepointEqual.java,
replace "extends CollatingFunction" by "extends SystemFunction".
Please register to edit this issue