aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-22 14:59:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-22 14:59:20 +0200
commita3e92641c7792573ff3075b3b3265377ec55a7a5 (patch)
tree83c27fe76a7b7581fc5a38e9be976527dc03fb0b
parentfe081cdd5a2fa360e81e1d3d7889de5c3daccd13 (diff)
Change default Oracle std::string mapping to 512 from 4000
-rw-r--r--NEWS3
-rw-r--r--doc/manual.xhtml4
-rw-r--r--odb/relational/oracle/context.cxx2
3 files changed, 6 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 60c74e4..c913eb6 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,9 @@ Version 1.8.0
Value Types" in the ODB manual as well as the 'composite' example in the
odb-examples package.
+ * Default Oracle mapping for std::string has changed from VARCHAR2(4000)
+ to VARCHAR2(512).
+
Version 1.7.0
* Support for the Oracle database. The provided connection factories
diff --git a/doc/manual.xhtml b/doc/manual.xhtml
index f5bf6dc..3b4ea40 100644
--- a/doc/manual.xhtml
+++ b/doc/manual.xhtml
@@ -12550,7 +12550,7 @@ SHOW integer_datetimes
<tr>
<td><code>std::string</code></td>
- <td><code>VARCHAR2(4000)</code></td>
+ <td><code>VARCHAR2(512)</code></td>
<td><code>NULL</code></td>
</tr>
</table>
@@ -14936,7 +14936,7 @@ class Person
<tr>
<td><code>QString</code></td>
- <td><code>VARCHAR2(4000)</code></td>
+ <td><code>VARCHAR2(512)</code></td>
<td><code>NULL</code></td>
</tr>
diff --git a/odb/relational/oracle/context.cxx b/odb/relational/oracle/context.cxx
index 26adfda..d3422c2 100644
--- a/odb/relational/oracle/context.cxx
+++ b/odb/relational/oracle/context.cxx
@@ -49,7 +49,7 @@ namespace relational
{"float", "BINARY_FLOAT", 0},
{"double", "BINARY_DOUBLE", 0},
- {"::std::string", "VARCHAR2(4000)", 0},
+ {"::std::string", "VARCHAR2(512)", 0},
{"::size_t", "NUMBER(20)", 0},
{"::std::size_t", "NUMBER(20)", 0}