fixed backend test compilation
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user