diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-22 18:40:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-22 18:40:58 +0200 |
commit | 4e540775abb7afa27f299b29943d9182fae445e7 (patch) | |
tree | 060407e3c239042c069d2c72ce390e47630295d6 /mysql/types | |
parent | 26d4b0a333e327d7ef42c67db4c06918bafb1d84 (diff) |
Add database type id as value_traits template argument
Diffstat (limited to 'mysql/types')
-rw-r--r-- | mysql/types/traits.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mysql/types/traits.hxx b/mysql/types/traits.hxx index 726135d..250343a 100644 --- a/mysql/types/traits.hxx +++ b/mysql/types/traits.hxx @@ -16,8 +16,8 @@ namespace odb { namespace mysql { - template <> - class value_traits<date_time, MYSQL_TIME> + template <database_type_id ID> + class value_traits<date_time, MYSQL_TIME, ID> { public: typedef date_time value_type; @@ -57,7 +57,7 @@ namespace odb }; template <> - class value_traits<buffer, details::buffer> + class value_traits<buffer, details::buffer, id_blob> { public: typedef buffer value_type; @@ -94,7 +94,7 @@ namespace odb }; template <> - class value_traits<bitfield, unsigned char*> + class value_traits<bitfield, unsigned char*, id_bit> { public: typedef bitfield value_type; @@ -128,7 +128,7 @@ namespace odb }; template <> - class value_traits<set, details::buffer> + class value_traits<set, details::buffer, id_set> { public: typedef set value_type; @@ -190,7 +190,7 @@ namespace odb }; template <> - class value_traits<std::auto_ptr<std::string>, details::buffer> + class value_traits<std::auto_ptr<std::string>, details::buffer, id_string> { public: typedef std::auto_ptr<std::string> value_type; |