From 5dd712307b5ee1e85cf7101c27e9bb978af26976 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Oct 2012 13:45:44 +0200 Subject: Get rid of result_impl_base --- odb/sqlite/polymorphic-object-result.hxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'odb/sqlite/polymorphic-object-result.hxx') diff --git a/odb/sqlite/polymorphic-object-result.hxx b/odb/sqlite/polymorphic-object-result.hxx index 0b03456..a56eb5b 100644 --- a/odb/sqlite/polymorphic-object-result.hxx +++ b/odb/sqlite/polymorphic-object-result.hxx @@ -14,8 +14,7 @@ #include #include -#include // query_base -#include +#include // query_base, query_params #include namespace odb @@ -24,8 +23,7 @@ namespace odb { template class polymorphic_object_result_impl: - public odb::polymorphic_object_result_impl, - public result_impl_base + public odb::polymorphic_object_result_impl { public: typedef odb::polymorphic_object_result_impl base_type; @@ -80,6 +78,11 @@ namespace odb load_image (); private: + // We need to hold on to the query parameters because SQLite uses + // the parameter buffers to find each next row. + // + details::shared_ptr params_; + details::shared_ptr statement_; statements_type& statements_; }; } -- cgit v1.1