From 414c1c5771ca05c23c8c1279dbdb90a673dda040 Mon Sep 17 00:00:00 2001 From: Eduard Tudenhoefner Date: Fri, 22 Jan 2016 15:49:11 -0600 Subject: [PATCH] cqlsh: Fix INSERT and UPDATE LWT handling Patch by Eduard Tudenhoefner; reviewed by Tyler Hobbs for CASSANDRA-11003 --- CHANGES.txt | 2 ++ bin/cqlsh.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 8daeb2dd76..1a1abc03cc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,6 @@ 3.0.3 + * (cqlsh) handle INSERT and UPDATE statements with LWT conditions correctly + (CASSANDRA-11003) * Fix DISTINCT queries in mixed version clusters (CASSANDRA-10762) * Migrate build status for indexes along with legacy schema (CASSANDRA-11046) * Ensure SSTables for legacy KEYS indexes can be read (CASSANDRA-11045) diff --git a/bin/cqlsh.py b/bin/cqlsh.py index 5d7d9e70fb..74e7103c8d 100644 --- a/bin/cqlsh.py +++ b/bin/cqlsh.py @@ -1269,7 +1269,7 @@ class Shell(cmd.Cmd): elif result: # CAS INSERT/UPDATE self.writeresult("") - self.print_static_result(result.column_names, list(result), self.parse_for_table_meta(statement.query_string)) + self.print_static_result(result.column_names, list(result), self.parse_for_update_meta(statement.query_string)) self.flush_output() return True, future