cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [2/6] git commit: cqlsh: fix message when zero rows are returned
Date Wed, 23 Jul 2014 18:14:43 GMT
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 <brandonwilliams@apache.org>
Authored: Wed Jul 23 13:12:44 2014 -0500
Committer: Brandon Williams <brandonwilliams@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:


Mime
View raw message