Wrong results after creating collation or win1251 from unicode case insensitive: strings are considered as distinct while they don't ------------------------------------------------------------------------------------------------------------------------------------
Key: CORE-4180 URL: http://tracker.firebirdsql.org/browse/CORE-4180 Project: Firebird Core Issue Type: Bug Components: Charsets/Collation Affects Versions: 3.0 Alpha 1 Reporter: Pavel Zotov Priority: Minor C:\>chcp 1251 <message in national lang. here>: 1251 C:\>C:\1Install\fb30\isql localhost/3330:empty30 -user sysdba -pas masterke -n -ch win1251 Database: localhost/3330:empty30, User: sysdba SQL> create collation ci_coll for win1251 from unicode case insensitive; SQL> commit; SQL> recreate table tci(id int, name varchar(30) character set win1251 collate ci_coll); SQL> commit; SQL> insert into tci(id, name) values(1, 'one row'); SQL> insert into tci(id, name) values(2, 'oNE rOW'); SQL> insert into tci(id, name) values(3, 'ONE ROW'); SQL> commit; SQL> select distinct name from tci; NAME ============================== one row oNE rOW ONE ROW SQL> show table tci; ID INTEGER Nullable NAME VARCHAR(30) CHARACTER SET WIN1251 Nullable COLLATE CI_COLL SQL> SQL> show version; ISQL Version: WI-T3.0.0.30583 Firebird 3.0 Alpha 1 Server version: Firebird/Windows/Intel/i386 (access method), version "WI-T3.0.0.30583 Firebird 3 .0 Alpha 1" Firebird/Windows/Intel/i386 (remote server), version "WI-T3.0.0.30583 Firebird 3 .0 Alpha 1/tcp (CSMIRROR)/P13" Firebird/Windows/Intel/i386 (remote interface), version "WI-T3.0.0.30583 Firebir d 3.0 Alpha 1/tcp (CSMIRROR)/P13" on disk structure version 12.0 --------- PS. The statement like this: create collation ci_coll for win1251 from unicode case insensitive; - was fault in FB 2.5.x with message: COLLATION UNICODE for CHARACTER SET WIN1251 is not defined -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel