aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/view-result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:01 +0200
commit42503207920b9264e04c97cb6a5c53214fd2eff8 (patch)
treedd192b60515188e2afd6f11e7cc54aac73f571e4 /odb/mysql/view-result.hxx
parent4d0711124bb6cdca491e33a51911d20090a1879a (diff)
Polymorphic inheritance support
Diffstat (limited to 'odb/mysql/view-result.hxx')
-rw-r--r--odb/mysql/view-result.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/odb/mysql/view-result.hxx b/odb/mysql/view-result.hxx
index f63e70b..ab59f03 100644
--- a/odb/mysql/view-result.hxx
+++ b/odb/mysql/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/mysql/version.hxx>
#include <odb/mysql/forward.hxx> // query, view_statements
-#include <odb/mysql/result.hxx>
#include <odb/mysql/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&);
@@ -59,7 +62,7 @@ namespace odb
private:
details::shared_ptr<select_statement> statement_;
- view_statements<view_type>& statements_;
+ statements_type& statements_;
std::size_t count_;
};
}