diff --git a/CHANGES.txt b/CHANGES.txt index 4cdc03169f..07845a6ebf 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -19,6 +19,7 @@ Merged from 2.2: * Add seconds to cqlsh tracing session duration (CASSANDRA-11753) * Prohibit Reversed Counter type as part of the PK (CASSANDRA-9395) Merged from 2.1: + * cqlsh: apply current keyspace to source command (CASSANDRA-11152) * Backport CASSANDRA-11578 (CASSANDRA-11750) * Clear out parent repair session if repair coordinator dies (CASSANDRA-11824) * Set default streaming_socket_timeout_in_ms to 24 hours (CASSANDRA-11840) diff --git a/bin/cqlsh.py b/bin/cqlsh.py index 9dc7b7710f..f770ff1f97 100644 --- a/bin/cqlsh.py +++ b/bin/cqlsh.py @@ -2005,6 +2005,7 @@ class Shell(cmd.Cmd): subshell = Shell(self.hostname, self.port, color=self.color, encoding=self.encoding, stdin=f, tty=False, use_conn=self.conn, cqlver=self.cql_version, + keyspace=self.current_keyspace, display_timestamp_format=self.display_timestamp_format, display_date_format=self.display_date_format, display_nanotime_format=self.display_nanotime_format,