Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire committed Nov 13, 2023
1 parent 268d43e commit 4491a5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/experimental/db/query_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ namespace realm::experimental {
return o._id == 123 && o.str_col != "John";
});
CHECK(results.size() == 0);
CHECK(query_string_results_size(AllTypesObject, "_id == $0 && str_col != $1", std::vector<realm::mixed>({(int64_t) 123, "John"})) == 0);
CHECK(query_string_results_size(AllTypesObject, "_id == $0 && str_col != $1", std::vector<realm::mixed>({(int64_t)123, "John"})) == 0);

results = realm.objects<AllTypesObject>().where([](auto &o) {
return o._id == 123 || o.str_col != "John";
Expand Down
4 changes: 2 additions & 2 deletions tests/experimental/db/results_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ namespace realm::experimental {
CHECK(queried_results.size() == 1);
CHECK(queried_results[0]._id == 1);

auto queried_results_string = results.where("_id == $0", {2});
auto queried_results_string = results.where("_id == $0", {(int64_t)2});
CHECK(queried_results_string.size() == 1);
CHECK(queried_results_string[0]._id == 2);

queried_results_string = results.where("_id == $0", {3});
queried_results_string = results.where("_id == $0", {(int64_t)3});
CHECK(queried_results_string.size() == 0);
}

Expand Down

0 comments on commit 4491a5d

Please sign in to comment.