--- a/src/TabularPrefetchingHandler.h Thu Sep 24 18:57:20 2020 +0200
+++ b/src/TabularPrefetchingHandler.h Wed Oct 07 16:42:37 2020 +0200
@@ -152,7 +152,7 @@
for (size_t i = 0; i < columnCount; i++) {
string_t typeCode = columnTypeCodes[i];
string_t columnName = columnNames[i];
- integer_t minWidth = columnName.size() + (getConfiguration(printTypes) ? typeCode.size() + 3 : 0); // 3 = " ()" in "columnName (typeCode)"
+ integer_t minWidth = columnName.size() + (getConfiguration(writeTypes) ? typeCode.size() + 3 : 0); // 3 = " ()" in "columnName (typeCode)"
columnWidths[i] = max(columnWidths[i], minWidth);
paddings[i] = columnWidths[i] - minWidth;
}
@@ -166,7 +166,7 @@
for (integer_t p = 0; p < paddings[i]; p++) {
output << " ";
}
- if (getConfiguration(printTypes)) output << " (" << convertor.to_bytes(columnTypeCodes[i]) << ")";
+ if (getConfiguration(writeTypes)) output << " (" << convertor.to_bytes(columnTypeCodes[i]) << ")";
output << ESC_BORDER << " │" << ESC_RESET;
}
output << std::endl;
@@ -189,7 +189,7 @@
}
printHorizontalLine(L"╰", L"┴", L"╯");
- if (getConfiguration(printRecordCount)) {
+ if (getConfiguration(writeRecordCount)) {
integer_t recordCount = values.size() / columnCount;
output << ESC_YELLOW << "Record count: " << ESC_RESET << recordCount << std::endl;
}
@@ -213,7 +213,7 @@
}
}
- if (getConfiguration(printRelationName)) output << ESC_RED << convertor.to_bytes(name) << ":" << ESC_RESET << endl;
+ if (getConfiguration(writeRelationName)) output << ESC_RED << convertor.to_bytes(name) << ":" << ESC_RESET << endl;
columnCount = attributes.size();
columnTypes.resize(columnCount);
columnTypeCodes.resize(columnCount);