fixed backend test compilation

This commit is contained in:
Sascha Kühl
2025-02-12 16:01:52 +01:00
parent 42acaf24ce
commit 5d41a592bb
36 changed files with 727 additions and 575 deletions
+5 -3
View File
@@ -1,6 +1,8 @@
#include "QueryFixture.hpp"
#include "matador/sql/query.hpp"
#include "matador/query/query.hpp"
#include "matador/sql/dialect.hpp"
#include "catch2/catch_test_macros.hpp"
@@ -10,7 +12,7 @@ QueryFixture::QueryFixture()
: db(connection::dns)
, schema(db.dialect().default_schema_name())
{
db.open();
REQUIRE(db.open());
}
QueryFixture::~QueryFixture() {
@@ -37,7 +39,7 @@ void QueryFixture::check_table_not_exists(const std::string &table_name) const
void QueryFixture::drop_table_if_exists(const std::string &table_name) const {
const auto result = db.exists(table_name).and_then([&table_name, this](bool exists) {
if (exists) {
if (sql::query::drop()
if (query::query::drop()
.table(table_name)
.execute(db).is_ok()) {
this->check_table_not_exists(table_name);