summaryrefslogtreecommitdiff
path: root/odb/relational/processor.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-08-14 09:37:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-25 06:47:21 +0200
commit55b36b8297ef9aac9e4ccc7b98f8649534ee0ac1 (patch)
treee9f0d22285d7fc9ad814b75eac9d587c6d630995 /odb/relational/processor.cxx
parent19ba3497c0788f02fc417f441d87c96ce23f9446 (diff)
Implement bulk database operation support for Oracle and SQL Server
Diffstat (limited to 'odb/relational/processor.cxx')
-rw-r--r--odb/relational/processor.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/relational/processor.cxx b/odb/relational/processor.cxx
index d32f8e5..b70451a 100644
--- a/odb/relational/processor.cxx
+++ b/odb/relational/processor.cxx
@@ -1024,6 +1024,12 @@ namespace relational
virtual void
traverse_object (type& c)
{
+ // Remove the bulk pragma if this database doesn't support bulk
+ // operations.
+ //
+ if (c.count ("bulk") && !generate_bulk)
+ c.remove ("bulk");
+
// Process indexes. Here we need to do two things: resolve member
// names to member paths and assign names to unnamed indexes. We
// are also going to handle the special container indexes.