We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dea9a3 commit d00449dCopy full SHA for d00449d
src/cmd/display.h
@@ -106,13 +106,14 @@ __attribute__((unused)) static void PrintColumnKey(
106
t.add("ttl");
107
t.add("ttl_type");
108
t.end_of_row();
109
-
+ int index_pos = 1;
110
for (int i = 0; i < column_key_field.size(); i++) {
111
const auto& column_key = column_key_field.Get(i);
112
if (column_key.flag() == 1) {
113
continue;
114
}
115
- t.add(std::to_string(i + 1));
+ t.add(std::to_string(index_pos));
116
+ index_pos++;
117
t.add(column_key.index_name());
118
std::string key;
119
for (const auto& name : column_key.col_name()) {
0 commit comments