Skip to content
Snippets Groups Projects
Commit 8add060c authored by Daniel Hornung's avatar Daniel Hornung
Browse files

Merge branch 'f-test-cli' into dev

parents 76366852 fc2daa38
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,8 @@ test:
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- cmake --build .
- cmake --build . --target unit_test_coverage
- cmake --build . --target cxxcaosdbcli
- cmake --build . --target ccaosdbcli
# trigger the integration tests
trigger_inttest:
......
......@@ -83,6 +83,7 @@ bool UnaryRpcHandler::OnNext(bool ok) {
// with the fail-fast option. (Note that async unary RPCs don't post a CQ
// tag at this point, nor do client-streaming or bidi-streaming RPCs that
// have the initial metadata corked option set.)"
return false;
}
return true;
......
......@@ -26,7 +26,7 @@
#include "caosdb/entity.h" // for Entity
#include "caosdb/exceptions.h" // for ConfigurationError
#include "caosdb/info.h" // for VersionInfo
#include "caosdb/transaction.h" // for Transaction, UniqueResult, ResultSet
#include "caosdb/transaction.h" // for Transaction, ResultSet
#include <iostream> // for operator<<, basic_ostream, basic_ost...
#include <memory> // for unique_ptr, allocator, __shared_ptr_...
#include <string> // for operator<<, char_traits
......@@ -52,11 +52,10 @@ auto main() -> int {
auto transaction(connection->CreateTransaction());
transaction->RetrieveById("20");
transaction->Execute();
const auto &result_set =
dynamic_cast<const caosdb::transaction::UniqueResult &>(transaction->GetResultSet());
const auto &result_set = transaction->GetResultSet();
// print description
std::cout << "Entity Description: " << result_set.GetEntity().GetDescription() << std::endl;
std::cout << "Entity Description: " << result_set.at(0).GetDescription() << std::endl;
return 0;
} catch (const caosdb::exceptions::ConfigurationError &exc) {
......
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