cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [2/2] git commit: Correctly accept upper-case data type (CQL3)
Date Fri, 05 Oct 2012 16:55:57 GMT
Correctly accept upper-case data type (CQL3)

patch by slebresne; reviewed by jbellis for CASSANDRA-4770


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6eafeb2b
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6eafeb2b
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6eafeb2b

Branch: refs/heads/trunk
Commit: 6eafeb2b0147a923d66405a7f376242acab790d5
Parents: 0d44159
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Fri Oct 5 17:59:47 2012 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Fri Oct 5 18:52:07 2012 +0200

----------------------------------------------------------------------
 CHANGES.txt                                        |    1 +
 src/java/org/apache/cassandra/cql3/CFPropDefs.java |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6eafeb2b/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 218c320..c680f03 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -18,6 +18,7 @@
  * (CQL3) Don't return ReversedType in result set metadata (CASSANDRA-4717)
  * Pluggable Thrift transport factories for CLI (CASSANDRA-4609)
  * Backport adding AlterKeyspace statement (CASSANDRA-4611)
+ * (CQL3) Correcty accept upper-case data types (CASSANDRA-4770)
 Merged from 1.0:
  * Switch from NBHM to CHM in MessagingService's callback map, which
    prevents OOM in long-running instances (CASSANDRA-4708)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/6eafeb2b/src/java/org/apache/cassandra/cql3/CFPropDefs.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/CFPropDefs.java b/src/java/org/apache/cassandra/cql3/CFPropDefs.java
index ab209dd..ec8bd5a 100644
--- a/src/java/org/apache/cassandra/cql3/CFPropDefs.java
+++ b/src/java/org/apache/cassandra/cql3/CFPropDefs.java
@@ -105,7 +105,7 @@ public class CFPropDefs extends PropertyDefinitions
     {
         try
         {
-            String className = comparators.get(type);
+            String className = comparators.get(type.toLowerCase());
             if (className == null)
                 className = type;
             return TypeParser.parse(className);


Mime
View raw message