diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-15 13:45:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-19 11:40:30 +0200 |
commit | 5dd712307b5ee1e85cf7101c27e9bb978af26976 (patch) | |
tree | 29a0569ea455bca893741dd5b5e858d41a9d1f12 /odb/sqlite/view-result.hxx | |
parent | 8112bd0febcfa1e3a76e0d03363facbefc3822f7 (diff) |
Get rid of result_impl_base
Diffstat (limited to 'odb/sqlite/view-result.hxx')
-rw-r--r-- | odb/sqlite/view-result.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/odb/sqlite/view-result.hxx b/odb/sqlite/view-result.hxx index a6d07e7..4d27367 100644 --- a/odb/sqlite/view-result.hxx +++ b/odb/sqlite/view-result.hxx @@ -14,7 +14,7 @@ #include <odb/details/shared-ptr.hxx> #include <odb/sqlite/version.hxx> -#include <odb/sqlite/forward.hxx> // query_base, view_statements +#include <odb/sqlite/forward.hxx> // query_base, query_params #include <odb/sqlite/statement.hxx> namespace odb @@ -22,8 +22,7 @@ namespace odb namespace sqlite { template <typename T> - class view_result_impl: public odb::view_result_impl<T>, - public result_impl_base + class view_result_impl: public odb::view_result_impl<T> { public: typedef odb::view_result_impl<T> base_type; @@ -61,6 +60,11 @@ namespace odb using base_type::current; private: + // We need to hold on to the query parameters because SQLite uses + // the parameter buffers to find each next row. + // + details::shared_ptr<query_params> params_; + details::shared_ptr<select_statement> statement_; statements_type& statements_; }; } |