cassandra-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1082953&view=rev
Log:
retain default validation when creating indexes

Patch by eevans

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

Modified: cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java?rev=1082953&r1=1082952&r2=1082953&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java Fri Mar 18 15:29:52
2011
@@ -707,7 +707,9 @@ public class QueryProcessor
                 else
                 {
                     columnDef = new ColumnDefinition(columnName,
-                                                     null,
+                                                     DatabaseDescriptor.getValueValidator(keyspace,
+                                                                                        
 createIdx.getColumnFamily(),
+                                                                                        
 columnName),
                                                      org.apache.cassandra.thrift.IndexType.KEYS,
                                                      createIdx.getIndexName());
                 }



Mime
View raw message