diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 15:47:37 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 15:47:37 +0300 |
commit | 62e234c114d2b6ead93a1d39593c66b648c3d0a6 (patch) | |
tree | ce6740b4508eb29400490b20efc8e100e38a7b7f /odb/oracle/section-statements.txx | |
parent | 9072842a023c4b65ecb141292c4b63417fee1b98 (diff) |
Turn libodb-oracle repository into package for muti-package repositorylibodb-oracle
Diffstat (limited to 'odb/oracle/section-statements.txx')
-rw-r--r-- | odb/oracle/section-statements.txx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/odb/oracle/section-statements.txx b/odb/oracle/section-statements.txx deleted file mode 100644 index 45606d5..0000000 --- a/odb/oracle/section-statements.txx +++ /dev/null @@ -1,49 +0,0 @@ -// file : odb/oracle/section-statements.txx -// license : ODB NCUEL; see accompanying LICENSE file - -#include <cstring> // std::memset - -namespace odb -{ - namespace oracle - { - template <typename T, typename ST> - section_statements<T, ST>:: - section_statements (connection_type& conn, - image_type& im, id_image_type&, - binding& id, binding& idv) - : conn_ (conn), - svm_ (0), - image_ (im), - id_binding_ (id), - idv_binding_ (idv), - select_image_binding_ (select_image_bind_, - select_column_count + - managed_optimistic_load_column_count), - update_image_binding_ (update_image_bind_, - update_column_count + id_column_count + - managed_optimistic_update_column_count) - { - select_image_version_ = 0; - update_image_version_ = 0; - update_id_binding_version_ = 0; - - // If we are using optimistic concurrency, then the select statement - // will override the version member in the object image. - // - if (managed_optimistic_load_column_count != 0) - { - // Getting to the root image in polymorphic case is tricky. - // - typedef object_traits_impl<T, id_oracle> object_traits; - - select_image_binding_.change_callback = - root_image<object_traits, object_traits::polymorphic>::get ( - image_).change_callback (); - } - - std::memset (select_image_bind_, 0, sizeof (select_image_bind_)); - std::memset (update_image_bind_, 0, sizeof (update_image_bind_)); - } - } -} |