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
+3 -2
View File
@@ -1,8 +1,9 @@
#ifndef QUERY_CONNECTION_HPP
#define QUERY_CONNECTION_HPP
#include "matador/sql/abstract_sql_logger.hpp"
#include "matador/object/attribute_definition.hpp"
#include "matador/sql/abstract_sql_logger.hpp"
#include "matador/sql/connection_info.hpp"
#include "matador/sql/executor.hpp"
#include "matador/sql/statement.hpp"
@@ -51,7 +52,7 @@ public:
*
* @param x The connection to copy move
*/
connection(connection &&x) noexcept = default;
connection(connection &&x) noexcept;
/**
* Assigns moves from the given connection
*
+1 -2
View File
@@ -29,8 +29,7 @@ struct connection_info {
std::string driver{}; /**< Driver to use. This is used by th mssql/odbc backends. */
template < class Operator >
void process(Operator &op)
{
void process(Operator &op) {
namespace field = matador::access;
field::attribute(op, "type", type);
field::attribute(op, "user", user);
+2 -1
View File
@@ -81,7 +81,8 @@ public:
connection_repo_.emplace_back(count, info_);
auto &conn = connection_repo_.back();
idle_connections_.emplace(conn.first, &conn);
conn.second.open();
// Todo: handle result
std::ignore = conn.second.open();
--count;
}
}
@@ -33,8 +33,7 @@ public:
}
template < class Type >
void bind(const size_t pos, Type &val)
{
void bind(const size_t pos, Type &val) {
utils::data_type_traits<Type>::bind_value(binder(), adjust_index(pos), val);
}