Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 454f32dcb -> 9940892c3


Fix cqlsh type handling after driver metadata api change

patch by Paulo Motta; reviewed by Aleksey Yeschenko


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

Branch: refs/heads/cassandra-3.0
Commit: 9940892c3c89e1780cfbda72bfe8c19bd4b1e36a
Parents: 454f32d
Author: Paulo Motta <pauloricard...@gmail.com>
Authored: Thu Nov 5 06:13:58 2015 -0800
Committer: Aleksey Yeschenko <alek...@apache.org>
Committed: Thu Nov 5 14:35:01 2015 +0000

----------------------------------------------------------------------
 bin/cqlsh.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9940892c/bin/cqlsh.py
----------------------------------------------------------------------
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 725f6e9..23d4444 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),

Reply via email to