diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-10 14:45:22 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-21 11:47:13 +0200 |
commit | 2619b3e1aa1839c13f9041d86de1f864c8823bc7 (patch) | |
tree | b79a1f05c028f053524ae3c1477b61eef99f8397 | |
parent | 8bb4e079dbcec6249da88595cd2a5b6b39fcc460 (diff) |
Add an additional byte of storage to the big_int image for a terminator byte
-rw-r--r-- | odb/relational/oracle/header.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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;" |