You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2012/04/19 22:54:42 UTC
[9/9] git commit: fix recognizing uppercase SELECT keyword patch by
Jonas Dohse and pcannon for CASSANDRA-4161
fix recognizing uppercase SELECT keyword
patch by Jonas Dohse and pcannon for CASSANDRA-4161
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/dc975e8a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/dc975e8a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/dc975e8a
Branch: refs/heads/cassandra-1.1
Commit: dc975e8ac3c6fc557e8b2b3ad83742bd259f91ac
Parents: 43a472e
Author: Jonathan Ellis <jb...@apache.org>
Authored: Thu Apr 19 14:00:32 2012 -0500
Committer: Jonathan Ellis <jb...@apache.org>
Committed: Thu Apr 19 14:00:32 2012 -0500
----------------------------------------------------------------------
CHANGES.txt | 1 +
bin/cqlsh | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/dc975e8a/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index c6fa3d3..8a9d924 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
1.1-dev
+ * (cqlsh) fix recognizing uppercase SELECT keyword (CASSANDRA-4161)
* average a reduced liveRatio estimate with the previous one (CASSANDRA-4065)
* Allow KS and CF names up to 48 characters (CASSANDRA-4157)
* Add support for CL.TWO and CL.THREE in CQL (CASSANDRA-4156)
http://git-wip-us.apache.org/repos/asf/cassandra/blob/dc975e8a/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 505b705..c26324a 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -804,7 +804,7 @@ class Shell(cmd.Cmd):
return self.perform_statement(cqlhandling.cql_extract_orig(tokens, srcstr))
def handle_parse_error(self, cmdword, tokens, parsed, srcstr):
- if cmdword == 'select':
+ if cmdword.lower() == 'select':
# hey, maybe they know about some new syntax we don't. type
# assumptions won't work, but maybe the query will.
return self.perform_statement(cqlhandling.cql_extract_orig(tokens, srcstr))