aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/polymorphic-object-statements.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-17 13:34:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-25 06:43:50 +0200
commit6ba692aabf2afae6dab83139ca5e219bfc614890 (patch)
tree75eec5e22602a5ddae9bc82c5d8253f922853c0c /odb/sqlite/polymorphic-object-statements.hxx
parent3bb29e43f60229bcac00777c839174703f848c16 (diff)
Implement bulk database operation support for Oracle and SQL Server
Diffstat (limited to 'odb/sqlite/polymorphic-object-statements.hxx')
-rw-r--r--odb/sqlite/polymorphic-object-statements.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/odb/sqlite/polymorphic-object-statements.hxx b/odb/sqlite/polymorphic-object-statements.hxx
index 2586cb0..4464fa3 100644
--- a/odb/sqlite/polymorphic-object-statements.hxx
+++ b/odb/sqlite/polymorphic-object-statements.hxx
@@ -315,7 +315,8 @@ namespace odb
conn_,
object_traits::persist_statement,
object_traits::versioned, // Process if versioned.
- insert_image_binding_));
+ insert_image_binding_,
+ 0));
}
return *persist_;
@@ -381,6 +382,7 @@ namespace odb
return extra_statement_cache_.get (
conn_,
image_,
+ id_image (),
id_image_binding (),
&id_image_binding ()); // Note, not id+version.
}
@@ -419,8 +421,9 @@ namespace odb
root_statements_type& root_statements_;
base_statements_type& base_statements_;
- extra_statement_cache_ptr<extra_statement_cache_type, image_type>
- extra_statement_cache_;
+ extra_statement_cache_ptr<extra_statement_cache_type,
+ image_type,
+ id_image_type> extra_statement_cache_;
image_type image_;