cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1082952 - /cassandra/trunk/src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java
Date Fri, 18 Mar 2011 15:29:48 GMT
Author: eevans
Date: Fri Mar 18 15:29:47 2011
New Revision: 1082952

URL: http://svn.apache.org/viewvc?rev=1082952&view=rev
Log:
make utf8 default comparator/validator for CQL (not ascii)

Patch by eevans

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java?rev=1082952&r1=1082951&r2=1082952&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java Fri
Mar 18 15:29:47 2011
@@ -210,8 +210,8 @@ public class CreateColumnFamilyStatement
         try
         {
             // RPC uses BytesType as the default validator/comparator but BytesType expects
hex for string terms, (not convenient).
-            AbstractType<?> comparator = DatabaseDescriptor.getComparator(comparators.get(getPropertyString(KW_COMPARATOR,
"ascii")));
-            String validator = getPropertyString(KW_DEFAULTVALIDATION, "ascii");
+            AbstractType<?> comparator = DatabaseDescriptor.getComparator(comparators.get(getPropertyString(KW_COMPARATOR,
"utf8")));
+            String validator = getPropertyString(KW_DEFAULTVALIDATION, "utf8");
 
             newCFMD = new CFMetaData(keyspace,
                                      name,



Mime
View raw message