added missing include

This commit is contained in:
Sascha Kühl 2025-02-07 11:49:00 +01:00
parent 8b41fbc531
commit 23646ab4ee
1 changed files with 4 additions and 3 deletions

View File

@ -3,12 +3,13 @@
#include "postgres_result_reader.hpp" #include "postgres_result_reader.hpp"
#include "postgres_statement.hpp" #include "postgres_statement.hpp"
#include "matador/object/attribute_definition.hpp"
#include "matador/sql/error_code.hpp" #include "matador/sql/error_code.hpp"
#include "matador/sql/record.hpp" #include "matador/sql/record.hpp"
#include "matador/sql/internal/query_result_impl.hpp" #include "matador/sql/internal/query_result_impl.hpp"
#include <sstream> #include <sstream>
namespace matador::backends::postgres { namespace matador::backends::postgres {
@ -198,9 +199,9 @@ utils::result<std::vector<object::attribute_definition>, utils::error> postgres_
// Todo: extract size // Todo: extract size
auto type = (string2type(reader.column(2))); auto type = (string2type(reader.column(2)));
end = nullptr; end = nullptr;
sql::null_option null_opt{sql::null_option::NULLABLE}; object::null_option null_opt{object::null_option::NULLABLE};
if (strtoul(reader.column(4), &end, 10) == 0) { if (strtoul(reader.column(4), &end, 10) == 0) {
null_opt = sql::null_option::NOT_NULL; null_opt = object::null_option::NOT_NULL;
} }
// f.default_value(res->column(4)); // f.default_value(res->column(4));
prototype.emplace_back(name, type, utils::null_attributes, null_opt, index); prototype.emplace_back(name, type, utils::null_attributes, null_opt, index);