From 55b36b8297ef9aac9e4ccc7b98f8649534ee0ac1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Aug 2014 09:37:06 +0200 Subject: Implement bulk database operation support for Oracle and SQL Server --- odb/relational/processor.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/relational/processor.cxx') 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. -- cgit v1.1