Fix incorrect cqlsh results when selecting same columns multiple times

Patch by Anthony Grasso; reviewed by Mick Semb Wever for CASSANDRA-13262
This commit is contained in:
Mick Semb Wever 2018-09-05 11:13:49 +10:00
parent 49adbe7e0f
commit 62e48c5f3f
No known key found for this signature in database
GPG Key ID: E91335D77E3E87CB
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2.2.14
* Fix incorrect cqlsh results when selecting same columns multiple times (CASSANDRA-13262)
* Returns null instead of NaN or Infinity in JSON strings (CASSANDRA-14377)
2.2.13

View File

@ -1313,7 +1313,7 @@ class Shell(cmd.Cmd):
# print header only
self.print_formatted_result(formatted_names, None)
return
formatted_values = [map(self.myformat_value, row.values()) for row in rows]
formatted_values = [map(self.myformat_value, [row[column] for column in column_names]) for row in rows]
if self.expand_enabled:
self.print_formatted_result_vertically(formatted_names, formatted_values)