aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-26 07:36:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-26 07:36:20 +0200
commit7a3b76479162e3e3fe6c425f7bb20eaea8f41e17 (patch)
tree781683fb84f52deca134d2b4612b4f4d9f135977
parent52f9ad475d953e00dfebddf67efea4df07355ea6 (diff)
Add comments
-rw-r--r--odb/oracle/no-id-object-statements.txx4
-rw-r--r--odb/oracle/simple-object-statements.txx8
2 files changed, 9 insertions, 3 deletions
diff --git a/odb/oracle/no-id-object-statements.txx b/odb/oracle/no-id-object-statements.txx
index 31f3891..fe01770 100644
--- a/odb/oracle/no-id-object-statements.txx
+++ b/odb/oracle/no-id-object-statements.txx
@@ -25,10 +25,12 @@ namespace odb
sizeof (image_type),
status_)
{
- image_[0].version = 0;
+ image_[0].version = 0; // Only version in the first element used.
select_image_version_ = 0;
insert_image_version_ = 0;
+ // SELECT statements only use the first element (no batches).
+ //
select_image_binding_.change_callback = image_[0].change_callback ();
std::memset (insert_image_bind_, 0, sizeof (insert_image_bind_));
diff --git a/odb/oracle/simple-object-statements.txx b/odb/oracle/simple-object-statements.txx
index 0e42d31..56bdae7 100644
--- a/odb/oracle/simple-object-statements.txx
+++ b/odb/oracle/simple-object-statements.txx
@@ -61,8 +61,10 @@ namespace odb
status_),
od_ (update_image_bind_ + update_column_count)
{
- images_[0].obj.version = 0; // @@ TODO [0]
- images_[0].id.version = 0; // @@ TODO
+ // Only versions in the first element used.
+ //
+ images_[0].obj.version = 0;
+ images_[0].id.version = 0;
select_image_version_ = 0;
insert_image_version_ = 0;
@@ -70,6 +72,8 @@ namespace odb
update_id_image_version_ = 0;
id_image_version_ = 0;
+ // SELECT statements only use the first element (no batches).
+ //
select_image_binding_.change_callback =
images_[0].obj.change_callback ();