Repository: cassandra Updated Branches: refs/heads/cassandra-2.1 b3f644fec -> f9fc846e9 refs/heads/cassandra-2.1.0 4cdfa8515 -> cfedc0075 refs/heads/trunk f9e0210db -> 6076f8ff3
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 Commit: cfedc0075d6baefcf67dd91c2253d8f4f978cb64 Parents: 4cdfa85 Author: Brandon Williams <brandonwilli...@apache.org> Authored: Wed Jul 23 13:12:44 2014 -0500 Committer: Brandon Williams <brandonwilli...@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: