From 3936b78d3d661a2ccc419675bec868c980caa917 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 20 Oct 2011 10:36:30 +0200 Subject: Update code generation to support use of SQLT_NUM OCI type instead of SQLT_VNU --- odb/relational/oracle/header.cxx | 6 +++--- odb/relational/oracle/source.cxx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'odb') diff --git a/odb/relational/oracle/header.cxx b/odb/relational/oracle/header.cxx index 9e4bb1c..1e9e850 100644 --- a/odb/relational/oracle/header.cxx +++ b/odb/relational/oracle/header.cxx @@ -78,10 +78,10 @@ namespace relational if (mi.st->range) n = mi.st->range_value / 2 + mi.st->range_value % 2; - // We require an additional byte for each of the length, exponent, - // and negative value terminator values. + // We require an additional byte for each of the exponent and + // negative value terminator values. // - n += 3; + n += 2; os << "char " << mi.var << "value[" << n << "];" << "ub2 " << mi.var << "size;" diff --git a/odb/relational/oracle/source.cxx b/odb/relational/oracle/source.cxx index 25e3bc1..cd943ec 100644 --- a/odb/relational/oracle/source.cxx +++ b/odb/relational/oracle/source.cxx @@ -660,6 +660,7 @@ namespace relational os << traits << "::set_value (" << endl << member << "," << endl << "i." << mi.var << "value," << endl + << "i." << mi.var << "size," << endl << "i." << mi.var << "indicator == -1);" << endl; } -- cgit v1.1