From 0cb2fe8ddfa9677adc52843ff6a31092027a7b01 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 7 Oct 2011 14:22:52 +0200 Subject: Implement unsigned_integer as part of oracle::context --- odb/relational/oracle/common.cxx | 13 ------------- odb/relational/oracle/context.cxx | 13 +++++++++++++ odb/relational/oracle/context.hxx | 3 +++ 3 files changed, 16 insertions(+), 13 deletions(-) (limited to 'odb/relational/oracle') diff --git a/odb/relational/oracle/common.cxx b/odb/relational/oracle/common.cxx index 06be240..cf8ba6c 100644 --- a/odb/relational/oracle/common.cxx +++ b/odb/relational/oracle/common.cxx @@ -13,19 +13,6 @@ namespace relational { namespace oracle { - static bool - unsigned_integer (semantics::type& t) - { - const string& s (t.name ()); - - return s == "bool" || - s == "unsigned char" || - s == "short unsigned int" || - s == "unsigned int" || - s == "long unsigned int" || - s == "long long unsigned int"; - } - // // member_base // diff --git a/odb/relational/oracle/context.cxx b/odb/relational/oracle/context.cxx index b863115..e9e83d1 100644 --- a/odb/relational/oracle/context.cxx +++ b/odb/relational/oracle/context.cxx @@ -114,6 +114,19 @@ namespace relational return r; } + bool context:: + unsigned_integer (semantics::type& t) + { + const string& s (t.name ()); + + return s == "bool" || + s == "unsigned char" || + s == "short unsigned int" || + s == "unsigned int" || + s == "long unsigned int" || + s == "long long unsigned int"; + } + // // SQL type parsing. // diff --git a/odb/relational/oracle/context.hxx b/odb/relational/oracle/context.hxx index db4f8fd..16f18bc 100644 --- a/odb/relational/oracle/context.hxx +++ b/odb/relational/oracle/context.hxx @@ -74,6 +74,9 @@ namespace relational column_sql_type (semantics::data_member&, string const& key_prefix = string ()); + static bool + unsigned_integer (semantics::type& t); + protected: virtual string database_type_impl (semantics::type&, semantics::names*, bool); -- cgit v1.1