jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1375026 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/LiteralImpl.java
Date Mon, 20 Aug 2012 14:00:41 GMT
Author: thomasm
Date: Mon Aug 20 14:00:41 2012
New Revision: 1375026

URL: http://svn.apache.org/viewvc?rev=1375026&view=rev
Log:
OAK-260 Avoid the "Turkish Locale Problem"

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/LiteralImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/LiteralImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/LiteralImpl.java?rev=1375026&r1=1375025&r2=1375026&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/LiteralImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/LiteralImpl.java
Mon Aug 20 14:00:41 2012
@@ -18,6 +18,7 @@
  */
 package org.apache.jackrabbit.oak.query.ast;
 
+import java.util.Locale;
 import org.apache.jackrabbit.oak.api.CoreValue;
 import org.apache.jackrabbit.oak.query.SQL2Parser;
 
@@ -45,8 +46,8 @@ public class LiteralImpl extends StaticO
 
     @Override
     public String toString() {
-        String type = PropertyType.nameFromValue(value.getType()).toUpperCase();
-        return "cast(" + escape() + " as " + type + ')';
+        String type = PropertyType.nameFromValue(value.getType());
+        return "cast(" + escape() + " as " + type.toLowerCase(Locale.ENGLISH) + ')';
     }
 
     private String escape() {



Mime
View raw message