addd const to variable

This commit is contained in:
Sascha Kühl 2026-04-03 19:15:01 +02:00
parent 40dfc30dae
commit 855c9295fb
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ using namespace matador::object;
using namespace matador::test; using namespace matador::test;
TEST_CASE_METHOD(SessionFixture, "Test insert object with has many relation", "[session][insert][has_many]") { TEST_CASE_METHOD(SessionFixture, "Test insert object with has many relation", "[session][insert][has_many]") {
auto result = schema.attach<book>("books") const auto result = schema.attach<book>("books")
.and_then( [this] { return schema.attach<author>("authors"); } ) .and_then( [this] { return schema.attach<author>("authors"); } )
.and_then([this] { return schema.create(db); } ); .and_then([this] { return schema.create(db); } );
REQUIRE(result.is_ok()); REQUIRE(result.is_ok());