Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • caosdb/src/caosdb-cpplib
1 result
Show changes
Commits on Source (3)
......@@ -345,7 +345,8 @@ public:
*
* A client may request the current status at any time via GetStatus().
*
* Use WaitForIt() to join the back-ground execution of this transaction.
* Use WaitForIt() to join the back-ground execution of this transaction, otherwise the behaviour
* of getting the ResultSet is undefined.
*/
auto ExecuteAsynchronously() noexcept -> StatusCode;
......@@ -353,7 +354,8 @@ public:
* Join the background execution and return the status when the execution
* terminates.
*
* Use this after ExecuteAsynchronously().
* Use this after ExecuteAsynchronously(), otherwise the TransactionStatus still remains
* EXECUTING.
*/
[[nodiscard]] auto WaitForIt() const noexcept -> TransactionStatus;
......
......@@ -172,6 +172,12 @@ TEST_F(test_ccaosdb, test_entity) {
EXPECT_FALSE(*is_list);
EXPECT_FALSE(*is_ref);
caosdb_entity_entity_set_datatype(&entity, "Person", true, true);
caosdb_entity_entity_get_datatype(&entity, &out, is_ref, is_list);
EXPECT_EQ(strcmp(out, "Person"), 0);
EXPECT_TRUE(*is_list);
EXPECT_TRUE(*is_ref);
caosdb_entity_entity_set_unit(&entity, "m");
caosdb_entity_entity_get_unit(&entity, &out);
EXPECT_EQ(strcmp(out, "m"), 0);
......