From a3e92641c7792573ff3075b3b3265377ec55a7a5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 22 Jan 2012 14:59:20 +0200 Subject: Change default Oracle std::string mapping to 512 from 4000 --- NEWS | 3 +++ doc/manual.xhtml | 4 ++-- odb/relational/oracle/context.cxx | 2 +- 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 std::string - VARCHAR2(4000) + VARCHAR2(512) NULL @@ -14936,7 +14936,7 @@ class Person QString - VARCHAR2(4000) + VARCHAR2(512) NULL 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} -- cgit v1.1