From 23646ab4ee5fa98799b21aeeb77685c8563c4b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=BChl?= Date: Fri, 7 Feb 2025 11:49:00 +0100 Subject: [PATCH] added missing include --- backends/postgres/src/postgres_connection.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backends/postgres/src/postgres_connection.cpp b/backends/postgres/src/postgres_connection.cpp index 1985bc5..eabf5fe 100644 --- a/backends/postgres/src/postgres_connection.cpp +++ b/backends/postgres/src/postgres_connection.cpp @@ -3,12 +3,13 @@ #include "postgres_result_reader.hpp" #include "postgres_statement.hpp" +#include "matador/object/attribute_definition.hpp" + #include "matador/sql/error_code.hpp" #include "matador/sql/record.hpp" #include "matador/sql/internal/query_result_impl.hpp" - #include namespace matador::backends::postgres { @@ -198,9 +199,9 @@ utils::result, utils::error> postgres_ // Todo: extract size auto type = (string2type(reader.column(2))); 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) { - null_opt = sql::null_option::NOT_NULL; + null_opt = object::null_option::NOT_NULL; } // f.default_value(res->column(4)); prototype.emplace_back(name, type, utils::null_attributes, null_opt, index);