File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 88 */
99
1010#include " flex-table-column.hpp"
11+
1112#include " format.hpp"
1213#include " pgsql-capabilities.hpp"
1314#include " util.hpp"
1415
1516#include < algorithm>
17+ #include < cassert>
1618#include < cctype>
1719#include < cstdlib>
1820#include < stdexcept>
@@ -24,12 +26,12 @@ namespace {
2426struct column_type_lookup
2527{
2628 char const *m_name;
27- table_column_type type ;
29+ table_column_type m_type ;
2830
2931 char const *name () const noexcept { return m_name; }
3032};
3133
32- static std::vector<column_type_lookup> const column_types = {
34+ std::vector<column_type_lookup> const column_types = {
3335 {{" text" , table_column_type::text},
3436 {" boolean" , table_column_type::boolean},
3537 {" bool" , table_column_type::boolean},
@@ -63,7 +65,7 @@ table_column_type get_column_type_from_string(std::string const &type)
6365 throw fmt_error (" Unknown column type '{}'." , type);
6466 }
6567
66- return column_type->type ;
68+ return column_type->m_type ;
6769}
6870
6971std::string lowercase (std::string const &str)
You can’t perform that action at this time.
0 commit comments