cqlsh: apply current keyspace to source command

patch by Stefania Alborghetti; reviewed by Robert Stupp for CASSANDRA-11152


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/4008e9bd
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/4008e9bd
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/4008e9bd

Branch: refs/heads/cassandra-3.0
Commit: 4008e9bd3fd8b6fca2f3c9f935b9f5dfa97116ad
Parents: b851792
Author: Stefania Alborghetti <stefania.alborghe...@datastax.com>
Authored: Tue May 31 16:52:26 2016 +0200
Committer: Stefania Alborghetti <stefania.alborghe...@datastax.com>
Committed: Wed Jun 1 15:25:40 2016 +0200

----------------------------------------------------------------------
 CHANGES.txt | 1 +
 bin/cqlsh   | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4008e9bd/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index ad9d00c..a437322 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.1.15
+ * 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)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/4008e9bd/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 374e588..6317ec9 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -1676,6 +1676,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_time_format=self.display_time_format,
                          display_float_precision=self.display_float_precision,
                          max_trace_wait=self.max_trace_wait)

Reply via email to