From 02aed5f059797cd5e53a9fe6dde13714f86332d4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Sep 2011 16:03:25 +0200 Subject: Support for views; integrated part --- odb/sqlite/traits.hxx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'odb/sqlite/traits.hxx') diff --git a/odb/sqlite/traits.hxx b/odb/sqlite/traits.hxx index e2a4a4d..e712aa7 100644 --- a/odb/sqlite/traits.hxx +++ b/odb/sqlite/traits.hxx @@ -236,8 +236,7 @@ namespace odb // of an image from the value but not the other way around. This way // we can pass such values to the queries. // - template <> - struct LIBODB_SQLITE_EXPORT default_value_traits + struct LIBODB_SQLITE_EXPORT c_string_value_traits { typedef const char* value_type; typedef const char* query_type; @@ -250,6 +249,17 @@ namespace odb const char*); }; + template <> + struct LIBODB_SQLITE_EXPORT default_value_traits: + c_string_value_traits + { + }; + + template + struct default_value_traits: c_string_value_traits + { + }; + // std::vector (buffer) specialization. // template <> @@ -386,6 +396,12 @@ namespace odb { static const database_type_id db_type_id = id_text; }; + + template + struct default_type_traits + { + static const database_type_id db_type_id = id_text; + }; } } -- cgit v1.1