diff --git a/tests/postgresql/recipes/enum/db_model.h b/tests/postgresql/recipes/enum/db_model.h index 525d7c2f..5efb0678 100644 --- a/tests/postgresql/recipes/enum/db_model.h +++ b/tests/postgresql/recipes/enum/db_model.h @@ -3,12 +3,15 @@ // clang-format off // generated by ./scripts/sqlpp23-ddl2cpp --path-to-ddl tests/postgresql/recipes/enum/db_model.sql --path-to-header tests/postgresql/recipes/enum/db_model.h --namespace test --assume-auto-id --generate-table-creation-helper -#include - -#include -#include -#include -#include +// The following auto-generated includes have been commented out manually to work around GCC bug +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99000 +// +// #include +// +// #include +// #include +// #include +// #include namespace test { template diff --git a/tests/postgresql/recipes/enum/main.cpp b/tests/postgresql/recipes/enum/main.cpp index 9da4c716..0a225e33 100644 --- a/tests/postgresql/recipes/enum/main.cpp +++ b/tests/postgresql/recipes/enum/main.cpp @@ -28,6 +28,9 @@ // // For details on the actual pattern see /docs/recipes/enum.md +#include +#include + #include // The enum definitions must be included before the database model @@ -35,8 +38,6 @@ #include #include -#include - namespace sql = ::sqlpp::postgresql; void test_enum_rw(sql::connection& db) { @@ -49,7 +50,6 @@ void test_enum_rw(sql::connection& db) { {animal::cat, shape::circle}, {animal::dog, shape::square}, {static_cast(10), shape::circle}}; - std::ranges::sort(val_write); // Write the enums vector to the database delete_from(te); for (const auto v : val_write) {