diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-09-16 10:39:36 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-09-19 10:35:17 +0200 |
commit | 946c283a971f09a4d1f72066d17a684f62f51d88 (patch) | |
tree | e34091b61f757aae17d9066b4e425175c44601f4 /odb/oracle/view-statements.txx | |
parent | a5510b8f0ef6d5aa7cce21a719de726b669aa394 (diff) |
Add container-statements, object-statments, view-statements and statement cache
Diffstat (limited to 'odb/oracle/view-statements.txx')
-rw-r--r-- | odb/oracle/view-statements.txx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/odb/oracle/view-statements.txx b/odb/oracle/view-statements.txx new file mode 100644 index 0000000..7f7b4c3 --- /dev/null +++ b/odb/oracle/view-statements.txx @@ -0,0 +1,35 @@ +// file : odb/oracle/view-statements.txx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#include <cstddef> // std::size_t +#include <cstring> // std::memset + +namespace odb +{ + namespace oracle + { + template <typename T> + view_statements<T>:: + ~view_statements () + { + } + + template <typename T> + view_statements<T>:: + view_statements (connection_type& conn) + : statements_base (conn), + image_binding_ (image_bind_, view_traits::column_count) + { + image_.version = 0; + image_version_ = 0; + + std::memset (image_bind_, 0, sizeof (image_bind_)); + std::memset (image_indicator_, 0, sizeof (image_indicator_)); + + for (std::size_t i (0) i < view_traits::column_count; ++i) + image_bind_[i].indicator = image_indicator_ + i; + } + } +} |