aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-22 11:03:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-22 11:03:40 +0200
commit7c8575dc312511623889119acbd105bbf4deb35b (patch)
tree06a112c891b7708c3194e4b9176bfe9083fa97ba
parenta21f161ebbec15125fd6bc8a006a7beeea77d032 (diff)
Add const char[n] value_traits specialization in addition to char[n]1.6.0.a2
-rw-r--r--odb/sqlite/traits.hxx11
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;
+ };
}
}