diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-27 15:16:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-27 15:16:49 +0200 |
commit | d83a7296e228cf0af74992020f51c566a03108c9 (patch) | |
tree | ab48b74c739049163839e4334e3855ad19906cb3 /odb/sqlite/view-result.txx | |
parent | 2e8daa4a5880f47e547de7db4e7ff5074d365723 (diff) |
Add support for persistent classes without object ids
New pragma id (object). New test: common/no-id.
Diffstat (limited to 'odb/sqlite/view-result.txx')
-rw-r--r-- | odb/sqlite/view-result.txx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/odb/sqlite/view-result.txx b/odb/sqlite/view-result.txx index 2facc24..f4449eb 100644 --- a/odb/sqlite/view-result.txx +++ b/odb/sqlite/view-result.txx @@ -13,14 +13,14 @@ namespace odb namespace sqlite { template <typename T> - result_impl<T, class_view>:: - ~result_impl () + view_result_impl<T>:: + ~view_result_impl () { } template <typename T> - result_impl<T, class_view>:: - result_impl (const query& q, + view_result_impl<T>:: + view_result_impl (const query& q, details::shared_ptr<select_statement> statement, view_statements<view_type>& statements) : base_type (statements.connection ().database ()), @@ -30,7 +30,7 @@ namespace odb } template <typename T> - void result_impl<T, class_view>:: + void view_result_impl<T>:: load (view_type& view) { // The image can grow between calls to load() as a result of other @@ -71,7 +71,7 @@ namespace odb } template <typename T> - void result_impl<T, class_view>:: + void view_result_impl<T>:: next () { this->current (pointer_type ()); @@ -81,13 +81,13 @@ namespace odb } template <typename T> - void result_impl<T, class_view>:: + void view_result_impl<T>:: cache () { } template <typename T> - std::size_t result_impl<T, class_view>:: + std::size_t view_result_impl<T>:: size () { throw result_not_cached (); |