You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2014/07/23 20:14:43 UTC

[2/6] git commit: cqlsh: fix message when zero rows are returned

cqlsh: fix message when zero rows are returned

Patch by brandonwilliams, reviewed by thobbs for CASSANDRA-7580


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

Branch: refs/heads/cassandra-2.1.0
Commit: cfedc0075d6baefcf67dd91c2253d8f4f978cb64
Parents: 4cdfa85
Author: Brandon Williams <br...@apache.org>
Authored: Wed Jul 23 13:12:44 2014 -0500
Committer: Brandon Williams <br...@apache.org>
Committed: Wed Jul 23 13:12:44 2014 -0500

----------------------------------------------------------------------
 bin/cqlsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/cfedc007/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 1798d3f..fb6fb5f 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -922,7 +922,7 @@ class Shell(cmd.Cmd):
         self.writeresult("")
         if rows :
             self.print_static_result(rows)
-        self.writeresult("(%d rows)" % len(rows))
+        self.writeresult("(%d rows)" % len(rows or []))
         self.writeresult("")
 
         if self.decoding_errors: