cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mish...@apache.org
Subject [5/8] git commit: Delimiter not working for special characters in COPY command from CQLSH
Date Thu, 13 Mar 2014 21:34:01 GMT
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/trunk
Commit: 972d3da2e87d2e6770ed70ab45aa9dedc0fdf779
Parents: 173df48
Author: Shiti Saxena <ssaxena.ece@gmail.com>
Authored: Thu Mar 13 14:06:51 2014 -0700
Committer: Mikhail Stepura <mishail@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()
 


Mime
View raw message