summaryrefslogtreecommitdiff
path: root/odb/relational/oracle/header.cxx
diff options
context:
space:
mode:
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;"