Skip to content
Snippets Groups Projects
Commit 99f81191 authored by florian's avatar florian
Browse files

FIX: Return the transaction status correctly

parent 481b031c
No related branches found
No related tags found
3 merge requests!12F consolidation,!9Draft: API: remove UniqueResult, lower-case at, size for ResultSet,!8ENH: Add retrieval and queries to Extern C interface
...@@ -333,8 +333,9 @@ ERROR_RETURN_CODE(GENERIC_ERROR, ...@@ -333,8 +333,9 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
auto *wrapped_transaction = auto *wrapped_transaction =
static_cast<caosdb::transaction::Transaction *>( static_cast<caosdb::transaction::Transaction *>(
transaction->wrapped_transaction); transaction->wrapped_transaction);
wrapped_transaction->Execute(); wrapped_transaction->ExecuteAsynchronously();
return 0; auto status = wrapped_transaction->WaitForIt();
return status.GetCode();
}) })
ERROR_RETURN_CODE(GENERIC_ERROR, ERROR_RETURN_CODE(GENERIC_ERROR,
......
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