From: Pierrick B. <pie...@fr...> - 2006-09-27 20:23:36
|
Hi, Oystein Reigem a =E9crit : > I believe=20 > collation sequence becomes relevant when querying string elements with=20 > operators >, <, etc. Yes. Basically, a general comparison operator is fall back to a value=20 comparison one which is then in turn called as=20 op:numeric-equal(fn:compare(A, B), 0), so the default collation of the=20 XQuery should be used. Most of the time, if not always, the Unicode=20 codepoint collation will be I guess. However, I don't know how a range index would behave if another=20 collation were used. > How does range indexing know which collation sequence to use? I'm afraid this info is not stored anywhere. Obviously, it would make=20 sense to keep this kind of info in the index itself to "hint" the=20 comparator. PS : feel free to submit test cases that demonstrate any problem in this=20 area... or in another one. Cheers, p.b. |