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
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -333,8 +333,9 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
auto *wrapped_transaction =
static_cast<caosdb::transaction::Transaction *>(
transaction->wrapped_transaction);
wrapped_transaction->Execute();
return 0;
wrapped_transaction->ExecuteAsynchronously();
auto status = wrapped_transaction->WaitForIt();
return status.GetCode();
})
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