diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-07 14:22:52 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-21 11:47:12 +0200 |
commit | 0cb2fe8ddfa9677adc52843ff6a31092027a7b01 (patch) | |
tree | c1c946660d701151f80c37085b640e0cd72ced26 | |
parent | 746c0dce5d945f27ed796ead1a0006456d2fb69b (diff) |
Implement unsigned_integer as part of oracle::context
-rw-r--r-- | odb/relational/oracle/common.cxx | 13 | ||||
-rw-r--r-- | odb/relational/oracle/context.cxx | 13 | ||||
-rw-r--r-- | odb/relational/oracle/context.hxx | 3 |
3 files changed, 16 insertions, 13 deletions
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); |