fixed linux compile
This commit is contained in:
@@ -75,13 +75,13 @@ TEST_CASE_METHOD(QueryFixture, "Execute select statement with where clause", "[q
|
||||
REQUIRE(i.size() == 4);
|
||||
REQUIRE(i.at(0).name() == "id");
|
||||
REQUIRE(i.at(0).is_integer());
|
||||
REQUIRE(i.at(0).as<long long>() == george.id);
|
||||
REQUIRE(i.at(0).as<uint32_t>() == george.id);
|
||||
REQUIRE(i.at(1).name() == "name");
|
||||
REQUIRE(i.at(1).is_varchar());
|
||||
REQUIRE(i.at(1).as<std::string>() == george.name);
|
||||
REQUIRE(i.at(2).name() == "age");
|
||||
REQUIRE(i.at(2).is_integer());
|
||||
REQUIRE(i.at(2).as<long long>() == george.age);
|
||||
REQUIRE(i.at(2).as<uint32_t>() == george.age);
|
||||
}
|
||||
|
||||
// fetch person as person
|
||||
@@ -377,10 +377,10 @@ TEST_CASE_METHOD(QueryFixture, "Select statement with foreign key and for single
|
||||
auto f1 = select_result.release();
|
||||
REQUIRE(f1->id == expected_flight->id);
|
||||
REQUIRE(f1->pilot_name == expected_flight->pilot_name);
|
||||
REQUIRE(f1->airplane.get());
|
||||
REQUIRE(f1->airplane->id == 1);
|
||||
REQUIRE(f1->airplane->model == "A380");
|
||||
REQUIRE(f1->airplane->brand == "Airbus");
|
||||
REQUIRE(f1->plane.get());
|
||||
REQUIRE(f1->plane->id == 1);
|
||||
REQUIRE(f1->plane->model == "A380");
|
||||
REQUIRE(f1->plane->brand == "Airbus");
|
||||
}
|
||||
|
||||
TEST_CASE_METHOD(QueryFixture, "Select statement with many to many relationship", "[query][join][many_to_many]") {
|
||||
|
||||
Reference in New Issue
Block a user