Subject | Re: [firebird-support] Transliteration problem |
---|---|
Author | Geoff Worboys |
Post date | 2014-12-22T11:55:51Z |
Mark Rotteveel mark@... [firebird-support] wrote:
It is easily tested on these SBCS (which is how I am now
confident that this was the only character with the problem in
WIN1252), so it seemed possible that it might be by design.
I will report it and let the developers decide.
code that was calling Upper() unnecessarily when constructing
the SQL - because the blob field in question does use a case
insensitive collation.
Regrettably, fixing my code to remove the unnecessary Upper()
call did not fix the problem. A simple CONTAINING test on
the blob still gets the error - presumably because it does
the same upper-case conversion internally to achieve its case
insensitivity.
--
Geoff Worboys
Telesis Computing Pty Ltd
> I think this is a bug and it should be reported as such. IfI tend to agree, but wasn't certain whether it was intentional.
> there is no uppercase equivalent of a character in the current
> character set, then UPPER() should use the character itself,
> not throw a transliteration error.
It is easily tested on these SBCS (which is how I am now
confident that this was the only character with the problem in
WIN1252), so it seemed possible that it might be by design.
I will report it and let the developers decide.
> However, have you considered using a case insensitiveI first found this problem when trying to fix some of my own
> collation instead of using UPPER() (assuming the actual
> problem is with comparisons, not with displaying uppercase
> characters)?
code that was calling Upper() unnecessarily when constructing
the SQL - because the blob field in question does use a case
insensitive collation.
Regrettably, fixing my code to remove the unnecessary Upper()
call did not fix the problem. A simple CONTAINING test on
the blob still gets the error - presumably because it does
the same upper-case conversion internally to achieve its case
insensitivity.
--
Geoff Worboys
Telesis Computing Pty Ltd