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.txx | |
parent | d2fc34834f0b7660374f78d4409e24a165950c2c (diff) |
Polymorphic inheritance support
Diffstat (limited to 'odb/oracle/view-result.txx')
-rw-r--r-- | odb/oracle/view-result.txx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/odb/oracle/view-result.txx b/odb/oracle/view-result.txx index 64d949e..dc5cd6a 100644 --- a/odb/oracle/view-result.txx +++ b/odb/oracle/view-result.txx @@ -33,7 +33,7 @@ namespace odb view_result_impl<T>:: view_result_impl (const query&, details::shared_ptr<select_statement> statement, - view_statements<view_type>& statements) + statements_type& statements) : base_type (statements.connection ().database ()), statement_ (statement), statements_ (statements), @@ -116,7 +116,7 @@ namespace odb template <typename T> void view_result_impl<T>:: - change_callback (void* c) + change_callback (void* c, binding*) { view_result_impl<T>* r (static_cast<view_result_impl<T>*> (c)); @@ -127,9 +127,10 @@ namespace odb else *r->image_copy_ = im; - // Increment binding version since we may have "stolen" some - // descriptors (LOB, date-time) from the image. Re-bind will - // reallocate them and update the binding. + // See comment in simple object_result for details on what's going + // on here. Except for views, there is nothing else other than the + // select binding, so just incrementing the binding version will + // be sufficient. // r->statements_.image_binding ().version++; |