Skip to content

Commit

Permalink
fix: desc
Browse files Browse the repository at this point in the history
  • Loading branch information
dl239 committed Oct 23, 2023
1 parent 9190ecf commit 2207657
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmd/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@ __attribute__((unused)) static void PrintColumnKey(
t.add("ttl");
t.add("ttl_type");
t.end_of_row();

int index_pos = 1;
for (int i = 0; i < column_key_field.size(); i++) {
const auto& column_key = column_key_field.Get(i);
if (column_key.flag() == 1) {
continue;
}
t.add(std::to_string(i + 1));
t.add(std::to_string(index_pos));
index_pos++;
t.add(column_key.index_name());
std::string key;
for (const auto& name : column_key.col_name()) {
Expand Down

0 comments on commit 2207657

Please sign in to comment.