From 2619b3e1aa1839c13f9041d86de1f864c8823bc7 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Mon, 10 Oct 2011 14:45:22 +0200 Subject: Add an additional byte of storage to the big_int image for a terminator byte --- odb/relational/oracle/header.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb/relational') diff --git a/odb/relational/oracle/header.cxx b/odb/relational/oracle/header.cxx index 751dc66..18c27af 100644 --- a/odb/relational/oracle/header.cxx +++ b/odb/relational/oracle/header.cxx @@ -78,9 +78,10 @@ namespace relational if (mi.st->range) n = mi.st->range_value / 2 + mi.st->range_value % 2; - // We require an additional 2 bytes for length and exponent fields. + // We require an additional byte for each of the length, exponent, + // and negative value terminator values. // - n += 2; + n += 3; os << "char " << mi.var << "value[" << n << "];" << "ub2 " << mi.var << "size;" -- cgit v1.1