diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-23 16:48:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-23 16:48:02 +0200 |
commit | f039726a9d756dff85607d89bf4ba5fd1ef42edf (patch) | |
tree | a422c8d57733d29d2ecab92b39a0b3bef8d6fc1d /odb/oracle/view-result.hxx | |
parent | d2fc34834f0b7660374f78d4409e24a165950c2c (diff) |
Polymorphic inheritance support
Diffstat (limited to 'odb/oracle/view-result.hxx')
-rw-r--r-- | odb/oracle/view-result.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/odb/oracle/view-result.hxx b/odb/oracle/view-result.hxx index 3eb4e2a..f44911a 100644 --- a/odb/oracle/view-result.hxx +++ b/odb/oracle/view-result.hxx @@ -9,11 +9,12 @@ #include <cstddef> // std::size_t +#include <odb/view-result.hxx> + #include <odb/details/shared-ptr.hxx> #include <odb/oracle/version.hxx> #include <odb/oracle/forward.hxx> // query, view_statements -#include <odb/oracle/result.hxx> #include <odb/oracle/statement.hxx> namespace odb @@ -32,12 +33,14 @@ namespace odb typedef typename base_type::pointer_type pointer_type; typedef typename base_type::pointer_traits pointer_traits; + typedef view_statements<view_type> statements_type; + virtual ~view_result_impl (); view_result_impl (const query&, details::shared_ptr<select_statement>, - view_statements<view_type>&); + statements_type&); virtual void load (view_type&); @@ -57,11 +60,11 @@ namespace odb typedef oracle::change_callback change_callback_type; static void - change_callback (void* context); + change_callback (void* context, binding*); private: details::shared_ptr<select_statement> statement_; - view_statements<view_type>& statements_; + statements_type& statements_; bool use_copy_; typename view_traits::image_type* image_copy_; }; |