Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 dce559995 -> 3dcc8c25e


Delimiter not working for special characters in COPY command from CQLSH

patch by Shiti Saxena; reviewed by Mikhail Stepura for CASSANDRA-6773


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

Branch: refs/heads/cassandra-2.0
Commit: 972d3da2e87d2e6770ed70ab45aa9dedc0fdf779
Parents: 173df48
Author: Shiti Saxena <ssaxena....@gmail.com>
Authored: Thu Mar 13 14:06:51 2014 -0700
Committer: Mikhail Stepura <mish...@apache.org>
Committed: Thu Mar 13 14:06:51 2014 -0700

----------------------------------------------------------------------
 bin/cqlsh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/972d3da2/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 5ccab3d..4bf1b76 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -1635,7 +1635,8 @@ class Shell(cmd.Cmd):
             fname = os.path.expanduser(self.cql_unprotect_value(fname))
         copyoptnames = map(str.lower, parsed.get_binding('optnames', ()))
         copyoptvals = map(self.cql_unprotect_value, 
parsed.get_binding('optvals', ()))
-        opts = dict(zip(copyoptnames, copyoptvals))
+        cleancopyoptvals  = [optval.decode('string-escape') for optval in 
copyoptvals]
+        opts = dict(zip(copyoptnames, cleancopyoptvals))
 
         timestart = time.time()
 

Reply via email to