aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/polymorphic-object-statements.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-17 09:08:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-25 06:44:31 +0200
commit2db43d4c2f2bed0348d781367090e633ad02779f (patch)
treec966a8dfb7855866e7bc89e6d4ef9c5c5fb3560c /odb/pgsql/polymorphic-object-statements.hxx
parent6323bca38688f0f5be72481fb146313d2fc5fe78 (diff)
Implement bulk database operation support for Oracle and SQL Server
Diffstat (limited to 'odb/pgsql/polymorphic-object-statements.hxx')
-rw-r--r--odb/pgsql/polymorphic-object-statements.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/odb/pgsql/polymorphic-object-statements.hxx b/odb/pgsql/polymorphic-object-statements.hxx
index f5ddcea..0e42cbf 100644
--- a/odb/pgsql/polymorphic-object-statements.hxx
+++ b/odb/pgsql/polymorphic-object-statements.hxx
@@ -330,7 +330,7 @@ namespace odb
insert_column_count,
insert_image_binding_,
insert_image_native_binding_,
- object_traits::auto_id,
+ 0,
false));
return *persist_;
@@ -405,6 +405,7 @@ namespace odb
return extra_statement_cache_.get (
conn_,
image_,
+ id_image (),
id_image_binding (),
&id_image_binding (), // Note, not id+version.
root_statements_.id_image_native_binding (),
@@ -446,8 +447,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_;