diff options
-rw-r--r-- | common/query/traits.hxx | 2 | ||||
-rw-r--r-- | mysql/types/traits.hxx | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/common/query/traits.hxx b/common/query/traits.hxx index 43b1bcc..45c1dc2 100644 --- a/common/query/traits.hxx +++ b/common/query/traits.hxx @@ -17,7 +17,7 @@ namespace odb namespace mysql { 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; 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; |