summaryrefslogtreecommitdiff
path: root/odb/relational/oracle
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-10 14:44:06 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-21 11:47:13 +0200
commit8bb4e079dbcec6249da88595cd2a5b6b39fcc460 (patch)
tree204cca3bfb947991826ae0629f13595c5fbdcfc7 /odb/relational/oracle
parent73caec68f1e8dc2bd2b9a045bdecdc2cc4f25348 (diff)
Aesthetic changes and comment additions
Diffstat (limited to 'odb/relational/oracle')
-rw-r--r--odb/relational/oracle/context.hxx2
-rw-r--r--odb/relational/oracle/header.cxx3
-rw-r--r--odb/relational/oracle/source.cxx13
3 files changed, 10 insertions, 8 deletions
diff --git a/odb/relational/oracle/context.hxx b/odb/relational/oracle/context.hxx
index 16f18bc..b884c41 100644
--- a/odb/relational/oracle/context.hxx
+++ b/odb/relational/oracle/context.hxx
@@ -75,7 +75,7 @@ namespace relational
string const& key_prefix = string ());
static bool
- unsigned_integer (semantics::type& t);
+ unsigned_integer (semantics::type&);
protected:
virtual string
diff --git a/odb/relational/oracle/header.cxx b/odb/relational/oracle/header.cxx
index fa0f12f..751dc66 100644
--- a/odb/relational/oracle/header.cxx
+++ b/odb/relational/oracle/header.cxx
@@ -107,6 +107,9 @@ namespace relational
virtual void
traverse_big_float (member_info& mi)
{
+ // big_float is mapped to the OCI type SQLT_NUM, which requires 21
+ // bytes of storage.
+ //
os << "char " << mi.var << "value[21];"
<< "ub2 " << mi.var << "size;"
<< "sb2 " << mi.var << "indicator;"
diff --git a/odb/relational/oracle/source.cxx b/odb/relational/oracle/source.cxx
index bca1d30..b5b7546 100644
--- a/odb/relational/oracle/source.cxx
+++ b/odb/relational/oracle/source.cxx
@@ -23,8 +23,7 @@ namespace relational
struct query_parameters: relational::query_parameters
{
query_parameters (base const& x)
- : base (x),
- i_ (0)
+ : base (x), i_ (0)
{
}
@@ -50,7 +49,7 @@ namespace relational
"oracle::bind::nstring", // NCHAR
"oracle::bind::string", // VARCHAR2
"oracle::bind::nstring", // NVARCHAR2
- "oracle::bind::string" // RAW
+ "oracle::bind::string" // RAW
};
const char* lob_buffer_types[] =
@@ -227,10 +226,10 @@ namespace relational
os << b << ".type = " <<
lob_buffer_types[mi.st->type - sql_type::BLOB] << ";"
<< b << ".indicator = &" << arg << "." << mi.var << "indicator;"
- << b << ".size = " << "out ?" << endl
- << "reinterpret_cast<ub2*> (&" << arg << "." << mi.var <<
- "lob) :" << endl
- << "reinterpret_cast<ub2*> (&" << arg << "." << mi.var <<
+ << b << ".size = " << "out" << endl
+ << "? reinterpret_cast<ub2*> (&" << arg << "." << mi.var <<
+ "lob)" << endl
+ << ": reinterpret_cast<ub2*> (&" << arg << "." << mi.var <<
"position_context);"
<< b << ".callback_context = " << arg << "." << mi.var <<
"context;"