Skip to content

Commit d00449d

Browse files
authored
fix: desc (#3567)
1 parent 5dea9a3 commit d00449d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cmd/display.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,14 @@ __attribute__((unused)) static void PrintColumnKey(
106106
t.add("ttl");
107107
t.add("ttl_type");
108108
t.end_of_row();
109-
109+
int index_pos = 1;
110110
for (int i = 0; i < column_key_field.size(); i++) {
111111
const auto& column_key = column_key_field.Get(i);
112112
if (column_key.flag() == 1) {
113113
continue;
114114
}
115-
t.add(std::to_string(i + 1));
115+
t.add(std::to_string(index_pos));
116+
index_pos++;
116117
t.add(column_key.index_name());
117118
std::string key;
118119
for (const auto& name : column_key.col_name()) {

0 commit comments

Comments
 (0)