Try this on a UTF8 database:

select
  case when 'Übergeek' collate unicode_ci_ai like 'ÜB%' collate unicode_ci_ai 
    then '=' else '<>' end as test_1,
  case when 'Übergeek' collate unicode_ci_ai like 'üb%' collate unicode_ci_ai 
    then '=' else '<>' end as test_2,
  case when 'Fußball' collate unicode_ci_ai like 'fu%' collate unicode_ci_ai
    then '=' else '<>' end as test_3,
  case when 'Fußball' collate unicode_ci_ai like 'fuß%' collate unicode_ci_ai 
    then '=' else '<>' end as test_4,
  case when upper ('Fußball') like upper ('fuß%') 
    then '=' else '<>' end as test_5
from rdb$database

TEST_4 will show a mismatch where it should show a match.

Is this a bug?

Database: Firebird 2.5.2.26540 SuperServer 64-Bit
OS: Windows 7 Pro 64-Bit


Regards

Stefan



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to