fix cli case sensitivity for index queries

patch by Pavel Yaskevich; reviewed by jbellis for CASSANDRA-1809'


git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1041833 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2010-12-03 14:23:44 +00:00
parent d6b1d581e9
commit 56770fc807
2 changed files with 3 additions and 1 deletions

View File

@ -468,7 +468,7 @@ public class CliClient extends CliUserHelp
return;
IndexClause clause = new IndexClause();
String columnFamily = statement.getChild(0).getText();
String columnFamily = CliCompiler.getColumnFamily(statement, keyspacesMap.get(keySpace).cf_defs);
// ^(CONDITIONS ^(CONDITION $column $value) ...)
Tree conditions = statement.getChild(1);

View File

@ -41,6 +41,8 @@ public class CliTest extends CleanupHelper
"get CF1[hello][world];",
"set CF1[hello][world2] = 15;",
"get CF1 where world2 = long(15);",
"get cF1 where world2 = long(15);",
"get Cf1 where world2 = long(15);",
"set CF1['hello'][time_spent_uuid] = timeuuid(a8098c1a-f86e-11da-bd1a-00112444be1e);",
"create column family CF2 with comparator=IntegerType;",
"set CF2['key'][98349387493847748398334] = 'some text';",