Description
It would be good for Derby to have built in Language based ordering based on locale specific Collator.
Language based ordering is an important feature for international deployment. DERBY-533 offers one implementation option for this but according to the discussion in that issue National Character Types carry a fair amount of baggage with them especially in the form of concerns about conversion to and from datetime and number types. Rick mentioned SQL language for collations as an option for language based ordering. There may be other options too, but I thought it worthwhile to add an issue for the high level functional concern, so the best choice can be made for implementation without assuming that National Character Types is the only solution.
For possible 10.1 workaround and examples see:
http://wiki.apache.org/db-derby/LanguageBasedOrdering
Attachments
Attachments
Issue Links
- incorporates
-
DERBY-2336 Enable collation based ordering for CHAR data type.
- Closed
-
DERBY-2669 If no territory attribute is not specified at create database time, then we should ignore the collation attribute if specified.
- Closed
- is duplicated by
-
DERBY-554 ORDER By clause doesn't work with national strings
- Closed
- is related to
-
DERBY-2879 CREATE TABLE AS <subquery> does not maintain the collation for character types.
- Closed
-
DERBY-2725 If all the operands involved in collation operation have a collation derivation of NONE, then Derby should throw an exception for that as per the SQL standards.
- Closed
-
DERBY-2894 calling DatabaseMetaData.getColumns() with % for matching column character in a territory based collated db does not work in 1.4.2 jvms
- Closed
-
DERBY-2909 TernaryOperatorNode does not check the collation type of it's operands when implementing TRIM, LOCATE functions.
- Closed
-
DERBY-2910 SimpleStringOperatorNode in it's bindExpression method generates a character string CAST if required but does not set the correct collation.
- Closed
-
DERBY-2831 NullPointerException creating a function in a schema that doesn't exist when the return type is a character type
- Closed
-
DERBY-2678 Derby should follow SQL standards when operand(s) in the collation operation have collation derivation of NONE
- Open
-
DERBY-3854 Implement LIKE transformations and optimizations for databases using territory-based collations
- Open
-
DERBY-533 Re-enable national character datatypes
- Closed
-
DERBY-2668 At the time of compilation of a comparison operation, if the collation types of the operands do not match, then we should throw a meaningful error message.
- Closed
-
DERBY-2723 Set correct collation type and derivation for result from user defined functions' that return character string type.
- Closed
-
DERBY-2724 Set correct collation type and derivation for result character string types from CURRENT ISOLATION, CURRENT_USER, SESSION_USER, SYSTEM_USER, CURRENT SCHEMA and CURRENT SQLID.
- Closed
- relates to
-
DERBY-2967 Single character does not match high value unicode character with collation TERRITORY_BASED
- Closed
-
DERBY-2863 Collation doc corrections/improvements
- Closed
-
DERBY-2731 String literal constants currently take the collation of the compilation schema but the wiki page http://wiki.apache.org/db-derby/BuiltInLanguageBasedOrderingDERBY-1478 expects USER schema collation.
- Closed
-
DERBY-2866 Improve error message when comparing user table and system table columns if collation doesn't match
- Closed