From 8bb4e079dbcec6249da88595cd2a5b6b39fcc460 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Mon, 10 Oct 2011 14:44:06 +0200 Subject: Aesthetic changes and comment additions --- odb/relational/oracle/context.hxx | 2 +- odb/relational/oracle/header.cxx | 3 +++ odb/relational/oracle/source.cxx | 13 ++++++------- 3 files changed, 10 insertions(+), 8 deletions(-) (limited to 'odb/relational') 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 (&" << arg << "." << mi.var << - "lob) :" << endl - << "reinterpret_cast (&" << arg << "." << mi.var << + << b << ".size = " << "out" << endl + << "? reinterpret_cast (&" << arg << "." << mi.var << + "lob)" << endl + << ": reinterpret_cast (&" << arg << "." << mi.var << "position_context);" << b << ".callback_context = " << arg << "." << mi.var << "context;" -- cgit v1.1