From 972d3da2e87d2e6770ed70ab45aa9dedc0fdf779 Mon Sep 17 00:00:00 2001 From: Shiti Saxena Date: Thu, 13 Mar 2014 14:06:51 -0700 Subject: [PATCH] Delimiter not working for special characters in COPY command from CQLSH patch by Shiti Saxena; reviewed by Mikhail Stepura for CASSANDRA-6773 --- bin/cqlsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cqlsh b/bin/cqlsh index 5ccab3dbdd..4bf1b7678f 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()