mirror of https://github.com/apache/cassandra
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:
parent
49adbe7e0f
commit
62e48c5f3f
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue