Repository: cassandra
Updated Branches:
  refs/heads/trunk af8c2a3ab -> bf52074f6


cqlsh: fix case insensitivity

Patch by Tyler Hobbs; review by Aleksey Yeschenko for CASSANDRA-7834


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

Branch: refs/heads/trunk
Commit: 58c09cbd425473968bf86a93901d4565414a6de2
Parents: 3b3afb3
Author: Tyler Hobbs <ty...@datastax.com>
Authored: Wed Aug 27 14:20:12 2014 -0500
Committer: Tyler Hobbs <ty...@datastax.com>
Committed: Wed Aug 27 14:20:12 2014 -0500

----------------------------------------------------------------------
 CHANGES.txt                    | 1 +
 pylib/cqlshlib/cql3handling.py | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/58c09cbd/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 0b45cef..18c0a96 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.1.0
+ * (cqlsh) Fix case insensitivity (CASSANDRA-7834)
  * Fix failure to stream ranges when moving (CASSANDRA-7836)
  * Correctly remove tmplink files (CASSANDRA-7803)
  * (cqlsh) Fix column name formatting for functions, CAS operations,

http://git-wip-us.apache.org/repos/asf/cassandra/blob/58c09cbd/pylib/cqlshlib/cql3handling.py
----------------------------------------------------------------------
diff --git a/pylib/cqlshlib/cql3handling.py b/pylib/cqlshlib/cql3handling.py
index 1c9b00f..92b3e58 100644
--- a/pylib/cqlshlib/cql3handling.py
+++ b/pylib/cqlshlib/cql3handling.py
@@ -116,8 +116,9 @@ class Cql3ParsingRuleSet(CqlParsingRuleSet):
         if name == '':
             return name
         if name[0] == '"' and name[-1] == '"':
-            name = name[1:-1].replace('""', '"')
-        return name
+            return name[1:-1].replace('""', '"')
+        else:
+            return name.lower()
 
     @staticmethod
     def dequote_value(cqlword):

Reply via email to