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 8
8
*/
9
9
10
10
#include " flex-table-column.hpp"
11
+
11
12
#include " format.hpp"
12
13
#include " pgsql-capabilities.hpp"
13
14
#include " util.hpp"
14
15
15
16
#include < algorithm>
17
+ #include < cassert>
16
18
#include < cctype>
17
19
#include < cstdlib>
18
20
#include < stdexcept>
@@ -24,12 +26,12 @@ namespace {
24
26
struct column_type_lookup
25
27
{
26
28
char const *m_name;
27
- table_column_type type ;
29
+ table_column_type m_type ;
28
30
29
31
char const *name () const noexcept { return m_name; }
30
32
};
31
33
32
- static std::vector<column_type_lookup> const column_types = {
34
+ std::vector<column_type_lookup> const column_types = {
33
35
{{" text" , table_column_type::text},
34
36
{" boolean" , table_column_type::boolean},
35
37
{" bool" , table_column_type::boolean},
@@ -63,7 +65,7 @@ table_column_type get_column_type_from_string(std::string const &type)
63
65
throw fmt_error (" Unknown column type '{}'." , type);
64
66
}
65
67
66
- return column_type->type ;
68
+ return column_type->m_type ;
67
69
}
68
70
69
71
std::string lowercase (std::string const &str)
You can’t perform that action at this time.
0 commit comments