diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-14 16:24:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-14 16:24:50 +0200 |
commit | 4bf55482207ee5807907833829dc30af2d18770b (patch) | |
tree | 063c5f1142cc5a3d0d9c2824241801d3e5203bea /odb/relational/oracle | |
parent | 5c836364144998dcd2d798f6bc404b0f0efddf5c (diff) |
Old interface compatibility and testing fixes
Now all tests pass for both Oracle and SQL Server.
Diffstat (limited to 'odb/relational/oracle')
-rw-r--r-- | odb/relational/oracle/header.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/odb/relational/oracle/header.cxx b/odb/relational/oracle/header.cxx index f87e8de..1004a4c 100644 --- a/odb/relational/oracle/header.cxx +++ b/odb/relational/oracle/header.cxx @@ -226,6 +226,28 @@ namespace relational member_image_type member_image_type_; }; entry<image_member> image_member_; + + struct class1: relational::class1 + { + class1 (base const& x): base (x) {} + + virtual void + object_public_extra_pre (type& c) + { + bool abst (abstract (c)); + + type* poly_root (polymorphic (c)); + bool poly (poly_root != 0); + bool poly_derived (poly && poly_root != &c); + + if (poly_derived || (abst && !poly)) + return; + + os << "static const std::size_t batch = 1UL;" + << endl; + } + }; + entry<class1> class1_entry_; } } } |