Issue Details (XML | Word | Printable)

Key: DERBY-27
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Priority: Minor Minor
Assignee: Unassigned
Reporter: Ramandeep Kaur
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

UCASE/LCASE function should change case according to database locale, but uppercases according to the JVM locale.

Created: 01/Oct/04 10:37 PM   Updated: 03/Nov/05 05:07 AM
Return to search
Component/s: SQL
Affects Version/s: 10.0.2.0
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 03/Nov/05 05:06 AM


 Description  « Hide
Opening this bug on behalf of Lynh Nguyen.

-------------------------------------------------
The doc says UCASE/LCASE should change case according to
the db locale.

In a turkish db UCASE Should uppercase i to an upper dotted i
and lowercase I to a lower non dotted i, but it changes the
case in the JVM locale. For example ij in the us:

ij> connect 'trdb;create=true;locale=tr_TR';
ij> values UCASE('i');
1
-
I

1 row selected
ij> values LCASE('I');
1
-
i

1 row selected

If I set the jvm locale to turkish I get the turkish
characters.

$ java -Duser.language=tr -Duser.region=TR
org.apache.derby.tools.ij
ij> connect 'jdbc:derby:trdb';
ij> values UCASE('i');
1
-
?

1 row selected


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Daniel John Debrunner made changes - 03/Nov/05 05:06 AM
Field Original Value New Value
Resolution Invalid [ 6 ]
Status Open [ 1 ] Resolved [ 5 ]
Daniel John Debrunner made changes - 03/Nov/05 05:07 AM
Status Resolved [ 5 ] Closed [ 6 ]