cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [1/2] git commit: cqlsh: fix LIST USERS output
Date Sat, 26 Oct 2013 12:33:29 GMT
Updated Branches:
  refs/heads/trunk db5c95cdc -> 55a774875


cqlsh: fix LIST USERS output

patch by Mikhail Stepura; reviewed by Aleksey Yeschenko for
CASSANDRA-6242


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

Branch: refs/heads/trunk
Commit: 18260c5f2c1d3056355bfd8c9c4bc1a1f6f5bc37
Parents: 1bd7ac3
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Sat Oct 26 15:31:47 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Sat Oct 26 15:31:47 2013 +0300

----------------------------------------------------------------------
 CHANGES.txt | 1 +
 bin/cqlsh   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/18260c5f/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 3c96770..62c3f52 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,6 @@
 2.0.3
  * Fix modifying column_metadata from thrift (CASSANDRA-6182)
+ * cqlsh: fix LIST USERS output (CASSANDRA-6242)
 
 
 2.0.2

http://git-wip-us.apache.org/repos/asf/cassandra/blob/18260c5f/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 3382111..acfb1f6 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -917,7 +917,7 @@ class Shell(cmd.Cmd):
                 self.printerr(traceback.format_exc())
                 return False
 
-        if statement[:6].lower() == 'select':
+        if statement[:6].lower() == 'select' or statement.lower().startswith("list"):
             self.print_result(self.cursor, with_default_limit)
         elif self.cursor.rowcount == 1:
             # CAS INSERT/UPDATE


Mime
View raw message