You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by al...@apache.org on 2014/02/15 02:03:22 UTC
git commit: cqlsh: fix BATCH CAS result printing (for once #6561 is
committed)
Repository: cassandra
Updated Branches:
refs/heads/cassandra-2.0 15fd82cb9 -> bbc56eb60
cqlsh: fix BATCH CAS result printing (for once #6561 is committed)
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/bbc56eb6
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/bbc56eb6
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/bbc56eb6
Branch: refs/heads/cassandra-2.0
Commit: bbc56eb60d9c9629deb231131d65cf55ee15c2db
Parents: 15fd82c
Author: Aleksey Yeschenko <al...@apache.org>
Authored: Sat Feb 15 04:03:10 2014 +0300
Committer: Aleksey Yeschenko <al...@apache.org>
Committed: Sat Feb 15 04:03:10 2014 +0300
----------------------------------------------------------------------
bin/cqlsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/bbc56eb6/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 0add46c..1b97783 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -921,7 +921,7 @@ class Shell(cmd.Cmd):
if statement[:6].lower() == 'select' or statement.lower().startswith("list"):
self.print_result(self.cursor, with_default_limit)
- elif self.cursor.rowcount == 1:
+ elif self.cursor.rowcount > 0:
# CAS INSERT/UPDATE
self.writeresult("")
self.print_static_result(self.cursor)