summaryrefslogtreecommitdiff
path: root/odb/relational/oracle/header.cxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-10 14:45:22 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-21 11:47:13 +0200
commit2619b3e1aa1839c13f9041d86de1f864c8823bc7 (patch)
treeb79a1f05c028f053524ae3c1477b61eef99f8397 /odb/relational/oracle/header.cxx
parent8bb4e079dbcec6249da88595cd2a5b6b39fcc460 (diff)
Add an additional byte of storage to the big_int image for a terminator byte
Diffstat (limited to 'odb/relational/oracle/header.cxx')
-rw-r--r--odb/relational/oracle/header.cxx5
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;"