Skip to content
Snippets Groups Projects
Verified Commit 22abf083 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: Add enum name to cases.

parent 9d4c6549
No related branches found
No related tags found
2 merge requests!33Release 0.1,!32fix windows build
Pipeline #14133 passed
Pipeline: caosdb-cppinttest

#14138

    ......@@ -55,12 +55,12 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \
    switch (this->transaction_type) { \
    case NONE: \
    case TransactionType::NONE: \
    this->transaction_type = TransactionType::READ_ONLY; \
    break; \
    case READ_ONLY: \
    case TransactionType::READ_ONLY: \
    break; \
    case MIXED_READ_AND_WRITE: \
    case TransactionType::MIXED_READ_AND_WRITE: \
    break; \
    default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ......@@ -91,11 +91,11 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \
    switch (this->transaction_type) { \
    case NONE: \
    case TransactionType::NONE: \
    this->transaction_type = TransactionType::DELETE; \
    case DELETE: \
    case MIXED_WRITE: \
    case MIXED_READ_AND_WRITE: \
    case TransactionType::DELETE: \
    case TransactionType::MIXED_WRITE: \
    case TransactionType::MIXED_READ_AND_WRITE: \
    break; \
    default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ......@@ -113,11 +113,11 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \
    switch (this->transaction_type) { \
    case NONE: \
    case TransactionType::NONE: \
    this->transaction_type = TransactionType::INSERT; \
    case INSERT: \
    case MIXED_WRITE: \
    case MIXED_READ_AND_WRITE: \
    case TransactionType::INSERT: \
    case TransactionType::MIXED_WRITE: \
    case TransactionType::MIXED_READ_AND_WRITE: \
    break; \
    default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ......@@ -135,11 +135,11 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \
    switch (this->transaction_type) { \
    case NONE: \
    case TransactionType::NONE: \
    this->transaction_type = TransactionType::INSERT; \
    case INSERT: \
    case MIXED_WRITE: \
    case MIXED_READ_AND_WRITE: \
    case TransactionType::INSERT: \
    case TransactionType::MIXED_WRITE: \
    case TransactionType::MIXED_READ_AND_WRITE: \
    break; \
    default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ......
    ......@@ -193,13 +193,13 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode { // NOLINT
    return StatusCode::TRANSACTION_STATUS_ERROR;
    }
    switch (this->transaction_type) {
    case MIXED_WRITE:
    case TransactionType::MIXED_WRITE:
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS(
    logger_name, StatusCode::UNSUPPORTED_FEATURE,
    "MIXED_WRITE UNSUPPORTED: The current implementation does not support "
    "mixed write transactions (containing insertions, deletions, and updates "
    "in one transaction).")
    case MIXED_READ_AND_WRITE:
    case TransactionType::MIXED_READ_AND_WRITE:
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS(
    logger_name, StatusCode::UNSUPPORTED_FEATURE,
    "MIXED_WRITE UNSUPPORTED: The current implementation does not support "
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment