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);