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 @@ ...@@ -55,12 +55,12 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \ return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \ } \
    switch (this->transaction_type) { \ switch (this->transaction_type) { \
    case NONE: \ case TransactionType::NONE: \
    this->transaction_type = TransactionType::READ_ONLY; \ this->transaction_type = TransactionType::READ_ONLY; \
    break; \ break; \
    case READ_ONLY: \ case TransactionType::READ_ONLY: \
    break; \ break; \
    case MIXED_READ_AND_WRITE: \ case TransactionType::MIXED_READ_AND_WRITE: \
    break; \ break; \
    default: \ default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \ CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ...@@ -91,11 +91,11 @@ ...@@ -91,11 +91,11 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \ return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \ } \
    switch (this->transaction_type) { \ switch (this->transaction_type) { \
    case NONE: \ case TransactionType::NONE: \
    this->transaction_type = TransactionType::DELETE; \ this->transaction_type = TransactionType::DELETE; \
    case DELETE: \ case TransactionType::DELETE: \
    case MIXED_WRITE: \ case TransactionType::MIXED_WRITE: \
    case MIXED_READ_AND_WRITE: \ case TransactionType::MIXED_READ_AND_WRITE: \
    break; \ break; \
    default: \ default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \ CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ...@@ -113,11 +113,11 @@ ...@@ -113,11 +113,11 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \ return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \ } \
    switch (this->transaction_type) { \ switch (this->transaction_type) { \
    case NONE: \ case TransactionType::NONE: \
    this->transaction_type = TransactionType::INSERT; \ this->transaction_type = TransactionType::INSERT; \
    case INSERT: \ case TransactionType::INSERT: \
    case MIXED_WRITE: \ case TransactionType::MIXED_WRITE: \
    case MIXED_READ_AND_WRITE: \ case TransactionType::MIXED_READ_AND_WRITE: \
    break; \ break; \
    default: \ default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \ CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ...@@ -135,11 +135,11 @@ ...@@ -135,11 +135,11 @@
    return StatusCode::TRANSACTION_STATUS_ERROR; \ return StatusCode::TRANSACTION_STATUS_ERROR; \
    } \ } \
    switch (this->transaction_type) { \ switch (this->transaction_type) { \
    case NONE: \ case TransactionType::NONE: \
    this->transaction_type = TransactionType::INSERT; \ this->transaction_type = TransactionType::INSERT; \
    case INSERT: \ case TransactionType::INSERT: \
    case MIXED_WRITE: \ case TransactionType::MIXED_WRITE: \
    case MIXED_READ_AND_WRITE: \ case TransactionType::MIXED_READ_AND_WRITE: \
    break; \ break; \
    default: \ default: \
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \ CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
    ......
    ...@@ -193,13 +193,13 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode { // NOLINT ...@@ -193,13 +193,13 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode { // NOLINT
    return StatusCode::TRANSACTION_STATUS_ERROR; return StatusCode::TRANSACTION_STATUS_ERROR;
    } }
    switch (this->transaction_type) { switch (this->transaction_type) {
    case MIXED_WRITE: case TransactionType::MIXED_WRITE:
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( CAOSDB_LOG_ERROR_AND_RETURN_STATUS(
    logger_name, StatusCode::UNSUPPORTED_FEATURE, logger_name, StatusCode::UNSUPPORTED_FEATURE,
    "MIXED_WRITE UNSUPPORTED: The current implementation does not support " "MIXED_WRITE UNSUPPORTED: The current implementation does not support "
    "mixed write transactions (containing insertions, deletions, and updates " "mixed write transactions (containing insertions, deletions, and updates "
    "in one transaction).") "in one transaction).")
    case MIXED_READ_AND_WRITE: case TransactionType::MIXED_READ_AND_WRITE:
    CAOSDB_LOG_ERROR_AND_RETURN_STATUS( CAOSDB_LOG_ERROR_AND_RETURN_STATUS(
    logger_name, StatusCode::UNSUPPORTED_FEATURE, logger_name, StatusCode::UNSUPPORTED_FEATURE,
    "MIXED_WRITE UNSUPPORTED: The current implementation does not support " "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.
    Please register or to comment