From 7acd35fc9b79acf130c30638d5d0e7b208118ad7 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 7 Jul 2024 22:20:56 +0200 Subject: [PATCH] Fix unusual member name in column_type_lookup And some other small fixes in the same file. --- src/flex-table-column.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/flex-table-column.cpp b/src/flex-table-column.cpp index 59ecd2b6a..489cd722e 100644 --- a/src/flex-table-column.cpp +++ b/src/flex-table-column.cpp @@ -8,11 +8,13 @@ */ #include "flex-table-column.hpp" + #include "format.hpp" #include "pgsql-capabilities.hpp" #include "util.hpp" #include +#include #include #include #include @@ -24,12 +26,12 @@ namespace { struct column_type_lookup { char const *m_name; - table_column_type type; + table_column_type m_type; char const *name() const noexcept { return m_name; } }; -static std::vector const column_types = { +std::vector const column_types = { {{"text", table_column_type::text}, {"boolean", table_column_type::boolean}, {"bool", table_column_type::boolean}, @@ -63,7 +65,7 @@ table_column_type get_column_type_from_string(std::string const &type) throw fmt_error("Unknown column type '{}'.", type); } - return column_type->type; + return column_type->m_type; } std::string lowercase(std::string const &str)