Fix cqlsh type handling after driver metadata api change

patch by Paulo Motta; reviewed by Aleksey Yeschenko
This commit is contained in:
Paulo Motta 2015-11-05 06:13:58 -08:00 committed by Aleksey Yeschenko
parent 454f32dcb6
commit 9940892c3c
1 changed files with 1 additions and 1 deletions

View File

@ -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),