wrong order when using collation DE_DE
--------------------------------------

                 Key: CORE-4026
                 URL: http://tracker.firebirdsql.org/browse/CORE-4026
             Project: Firebird Core
          Issue Type: Bug
          Components: Charsets/Collation
    Affects Versions: 2.5.2
         Environment: Win7, XP, Firebird 2.5.2
            Reporter: Volker Rehn


Only digits and alphabet characters are used for sorting, everything else 
(#$%&_[]{}/"!<>~+*:;,. etc) is ignored. Collation DE_DE is not a CI_AI etc 
collation, it should work with other characters too. Test case:

CREATE TABLE TBL (
  ENTRY VARCHAR(30) COLLATE DE_DE
);

INSERT INTO TBL (ENTRY) VALUES('0');
INSERT INTO TBL (ENTRY) VALUES('''+''0 %;''-''0 %');
INSERT INTO TBL (ENTRY) VALUES('0.00');
INSERT INTO TBL (ENTRY) VALUES('0.00 %');
INSERT INTO TBL (ENTRY) VALUES('''+''0.000;''-''0.000');
INSERT INTO TBL (ENTRY) VALUES('abc');
INSERT INTO TBL (ENTRY) VALUES('def');
INSERT INTO TBL (ENTRY) VALUES('NNN');
INSERT INTO TBL (ENTRY) VALUES('yyy');

select entry from tbl
order by 1

gives:

ENTRY
=============
0
'+'0 %;'-'0 %
0.00
0.00 %
'+'0.000;'-'0.000
abc
def
NNN
yyy

Regards Volker

-- 
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

        

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to