diff options
-rw-r--r-- | odb/sqlite/traits.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/sqlite/traits.hxx b/odb/sqlite/traits.hxx index e712aa7..c93c2c6 100644 --- a/odb/sqlite/traits.hxx +++ b/odb/sqlite/traits.hxx @@ -260,6 +260,11 @@ namespace odb { }; + template <std::size_t n> + struct default_value_traits<const char[n], id_text>: c_string_value_traits + { + }; + // std::vector<char> (buffer) specialization. // template <> @@ -402,6 +407,12 @@ namespace odb { static const database_type_id db_type_id = id_text; }; + + template <std::size_t n> + struct default_type_traits<const char[n]> + { + static const database_type_id db_type_id = id_text; + }; } } |