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/source.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'odb/relational/oracle/source.cxx') 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