# HG changeset patch # User František Kučera # Date 1536519693 -7200 # Node ID fc1e746e26a5edf1951ec3cbbbdaaaef36ab8fa3 # Parent 911ec74cce33e36f59ff7bf7a2b3a0a4f38578be use AttributeMetadata instead of std::pair for relation header diff -r 911ec74cce33 -r fc1e746e26a5 src/TabularPrefetchingHandler.h --- a/src/TabularPrefetchingHandler.h Sun Sep 09 02:00:00 2018 +0200 +++ b/src/TabularPrefetchingHandler.h Sun Sep 09 21:01:33 2018 +0200 @@ -11,6 +11,7 @@ #include #include #include +#include namespace relpipe { namespace out { @@ -154,7 +155,7 @@ TabularPrefetchingHandler(std::ostream& output) : output(output) { } - void startRelation(string_t name, std::vector > attributes) override { + void startRelation(string_t name, std::vector attributes) override { if (columnCount) printCachedData(); output << ESC_RED << convertor.to_bytes(name) << ":" << ESC_RESET << endl; @@ -164,9 +165,9 @@ columnNames.resize(columnCount); columnWidths.resize(columnCount, 0); for (int i = 0; i < attributes.size(); i++) { - columnNames[i] = attributes[i].first; - columnTypes[i] = attributes[i].second; - columnTypeCodes[i] = L"TODO"; // TODO: type codes/names + columnNames[i] = attributes[i].attributeName; + columnTypes[i] = attributes[i].typeId; + columnTypeCodes[i] = attributes[i].typeName; } }