From 2c2e3168e8c9c466c2054b9e99155bc262d98064 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 27 Sep 2011 17:04:14 +0200 Subject: Add const char[n] value_traits specialization in addition to char[n] --- odb/oracle/traits.hxx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/odb/oracle/traits.hxx b/odb/oracle/traits.hxx index a05d74f..7eb0ef9 100644 --- a/odb/oracle/traits.hxx +++ b/odb/oracle/traits.hxx @@ -474,10 +474,22 @@ namespace odb }; template + struct default_value_traits: + c_string_value_traits + { + }; + + template struct default_value_traits: c_string_value_traits { }; + template + struct default_value_traits: + c_string_value_traits + { + }; + // std::string specialization for LOBs. // class string_lob_value_traits @@ -610,11 +622,22 @@ namespace odb }; template + struct default_value_traits: + c_string_lob_value_traits + { + }; + + template struct default_value_traits: c_string_lob_value_traits { }; + template + struct default_value_traits: + c_string_lob_value_traits + { + }; // std::vector (buffer) specialization. // template <> @@ -797,6 +820,12 @@ namespace odb { static const database_type_id db_type_id = id_string; }; + + template + struct default_type_traits + { + static const database_type_id db_type_id = id_string; + }; } } -- cgit v1.1