From 9940892c3c89e1780cfbda72bfe8c19bd4b1e36a Mon Sep 17 00:00:00 2001 From: Paulo Motta Date: Thu, 5 Nov 2015 06:13:58 -0800 Subject: [PATCH] Fix cqlsh type handling after driver metadata api change patch by Paulo Motta; reviewed by Aleksey Yeschenko --- bin/cqlsh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cqlsh.py b/bin/cqlsh.py index 725f6e96ea..23d4444cec 100644 --- a/bin/cqlsh.py +++ b/bin/cqlsh.py @@ -2394,7 +2394,7 @@ class ImportProcess(multiprocessing.Process): table_meta = new_cluster.metadata.keyspaces[self.ks].tables[self.cf] pk_cols = [col.name for col in table_meta.primary_key] - cqltypes = [table_meta.columns[name].typestring for name in self.columns] + cqltypes = [table_meta.columns[name].cql_type for name in self.columns] pk_indexes = [self.columns.index(col.name) for col in table_meta.primary_key] query = 'INSERT INTO %s.%s (%s) VALUES (%%s)' % ( protect_name(table_meta.keyspace_name),