cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [1/2] cassandra git commit: Fix cqlsh type handling after driver metadata api change
Date Thu, 05 Nov 2015 14:35:47 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 2a4b8f10e -> c42fcf570


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/trunk
Commit: 9940892c3c89e1780cfbda72bfe8c19bd4b1e36a
Parents: 454f32d
Author: Paulo Motta <pauloricardomg@gmail.com>
Authored: Thu Nov 5 06:13:58 2015 -0800
Committer: Aleksey Yeschenko <aleksey@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),


Mime
View raw message