mirror of https://github.com/apache/cassandra
Fix cqlsh type handling after driver metadata api change
patch by Paulo Motta; reviewed by Aleksey Yeschenko
This commit is contained in:
parent
454f32dcb6
commit
9940892c3c
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue