@@ -13,31 +13,31 @@ struct column_type_lookup
1313 table_column_type type;
1414};
1515
16- static column_type_lookup const column_types[] = {
17- {" sql" , table_column_type::sql},
18- {" text" , table_column_type::text},
19- {" boolean" , table_column_type::boolean},
20- {" bool" , table_column_type::boolean},
21- {" int2" , table_column_type::int2},
22- {" smallint" , table_column_type::int2},
23- {" int4" , table_column_type::int4},
24- {" int" , table_column_type::int4},
25- {" integer" , table_column_type::int4},
26- {" int8" , table_column_type::int8},
27- {" bigint" , table_column_type::int8},
28- {" real" , table_column_type::real},
29- {" hstore" , table_column_type::hstore},
30- {" direction" , table_column_type::direction},
31- {" geometry" , table_column_type::geometry},
32- {" point" , table_column_type::point},
33- {" linestring" , table_column_type::linestring},
34- {" polygon" , table_column_type::polygon},
35- {" multipoint" , table_column_type::multipoint},
36- {" multilinestring" , table_column_type::multilinestring},
37- {" multipolygon" , table_column_type::multipolygon},
38- {" area" , table_column_type::area},
39- {" id_type" , table_column_type::id_type},
40- {" id_num" , table_column_type::id_num}};
16+ static std::array< column_type_lookup, 24 > const column_types = {
17+ {{ " sql" , table_column_type::sql},
18+ {" text" , table_column_type::text},
19+ {" boolean" , table_column_type::boolean},
20+ {" bool" , table_column_type::boolean},
21+ {" int2" , table_column_type::int2},
22+ {" smallint" , table_column_type::int2},
23+ {" int4" , table_column_type::int4},
24+ {" int" , table_column_type::int4},
25+ {" integer" , table_column_type::int4},
26+ {" int8" , table_column_type::int8},
27+ {" bigint" , table_column_type::int8},
28+ {" real" , table_column_type::real},
29+ {" hstore" , table_column_type::hstore},
30+ {" direction" , table_column_type::direction},
31+ {" geometry" , table_column_type::geometry},
32+ {" point" , table_column_type::point},
33+ {" linestring" , table_column_type::linestring},
34+ {" polygon" , table_column_type::polygon},
35+ {" multipoint" , table_column_type::multipoint},
36+ {" multilinestring" , table_column_type::multilinestring},
37+ {" multipolygon" , table_column_type::multipolygon},
38+ {" area" , table_column_type::area},
39+ {" id_type" , table_column_type::id_type},
40+ {" id_num" , table_column_type::id_num} }};
4141
4242static table_column_type
4343get_column_type_from_string (std::string const &type) noexcept
0 commit comments