From e35253f6b08af5e12e672bbda491b88343c54bc7 Mon Sep 17 00:00:00 2001
From: Alex <akreft@trineo.org>
Date: Fri, 1 Oct 2021 08:45:10 +0200
Subject: [PATCH] MAINT: Rename DELETE for windows build

---
 include/caosdb/transaction.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/caosdb/transaction.h b/include/caosdb/transaction.h
index 1355b86..3d872f6 100644
--- a/include/caosdb/transaction.h
+++ b/include/caosdb/transaction.h
@@ -91,11 +91,11 @@
     return StatusCode::TRANSACTION_STATUS_ERROR;                                                   \
   }                                                                                                \
   switch (this->transaction_type) {                                                                \
-  case TransactionType::NONE:                                                                      \
-    this->transaction_type = TransactionType::DELETE;                                              \
-  case TransactionType::DELETE:                                                                    \
-  case TransactionType::MIXED_WRITE:                                                               \
-  case TransactionType::MIXED_READ_AND_WRITE:                                                      \
+  case NONE:                                                                                       \
+    this->transaction_type = TransactionType::DELETE2;                                             \
+  case DELETE2:                                                                                    \
+  case MIXED_WRITE:                                                                                \
+  case MIXED_READ_AND_WRITE:                                                                       \
     break;                                                                                         \
   default:                                                                                         \
     CAOSDB_LOG_ERROR_AND_RETURN_STATUS(                                                            \
@@ -290,7 +290,7 @@ public:
     READ_ONLY,           //!< Only retrievals (by id, by query)
     INSERT,              //!< Only insertions
     UPDATE,              //!< Only updates
-    DELETE,              //!< Only deletions
+    DELETE2,             //!< Only deletions
     MIXED_WRITE,         //!< Only insertions, deletions, updates
     MIXED_READ_AND_WRITE //!< all kind of transaction.
   };
-- 
GitLab