summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/relational/oracle/common.cxx13
-rw-r--r--odb/relational/oracle/context.cxx13
-rw-r--r--odb/relational/oracle/context.hxx3
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);