From 06583147eaa601764a789ae586384e38e05e9015 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 26 Nov 2014 15:04:56 +0200 Subject: Implement optimistic concurrency support in bulk operations Bulk update and SQL Server ROWVERSION not yet supported. --- odb/relational/validator.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'odb/relational/validator.cxx') diff --git a/odb/relational/validator.cxx b/odb/relational/validator.cxx index 6c3a6fd..33d796d 100644 --- a/odb/relational/validator.cxx +++ b/odb/relational/validator.cxx @@ -409,17 +409,9 @@ namespace relational break; } - if (optimistic (c)) - { - error (l) << "bulk operations on optimistic objects are not " - "supported" << endl; - valid_ = false; - break; - } - bool update (true); - // If we have a change-updated section, then we cannot generate + // Unless we only have manually-updated sections, we cannot generate // the bulk update operation. // user_sections& uss (c.get ("user-sections")); -- cgit v1.1