aboutsummaryrefslogtreecommitdiff
path: root/common/view/basics/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/view/basics/test.hxx')
-rw-r--r--common/view/basics/test.hxx26
1 files changed, 25 insertions, 1 deletions
diff --git a/common/view/basics/test.hxx b/common/view/basics/test.hxx
index 66bf86c..130bcd4 100644
--- a/common/view/basics/test.hxx
+++ b/common/view/basics/test.hxx
@@ -543,7 +543,18 @@ namespace test2
odb::nullable<int> id2;
};
-#if !defined(ODB_DATABASE_SQLITE) && !defined(ODB_DATABASE_COMMON)
+ // @@ BUILD2 Also disable for ODB_DATABASE_MYSQL and ODB_DATABASE_PGSQL,
+ // otherwise we end up with the following error:
+ //
+ // test-odb-mysql.hxx:3202:20: error: invalid use of incomplete type ‘class odb::access::view_traits<test2::vright>’
+ // 3202 | public access::view_traits< ::test2::vright >
+ // | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ //
+//#if !defined(ODB_DATABASE_SQLITE) && !defined(ODB_DATABASE_COMMON)
+#if !defined(ODB_DATABASE_MYSQL) && \
+ !defined(ODB_DATABASE_SQLITE) && \
+ !defined(ODB_DATABASE_PGSQL) && \
+ !defined(ODB_DATABASE_COMMON)
#pragma db view object(obj2 = o2) object(obj1 = o1 right: o2::n == o1::n)
struct vright
@@ -554,8 +565,21 @@ namespace test2
#endif
+ // @@ BUILD2 Also disable for ODB_DATABASE_PGSQL, otherwise we end up with the
+ // following error:
+ //
+ // test-odb-pgsql.hxx:3325:20: error: invalid use of incomplete type ‘class odb::access::view_traits<test2::vfull>’
+ // 3325 | public access::view_traits< ::test2::vfull >
+ // | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ //
+/*
+#if !defined(ODB_DATABASE_MYSQL) && \
+ !defined(ODB_DATABASE_SQLITE) && \
+ !defined(ODB_DATABASE_COMMON)
+*/
#if !defined(ODB_DATABASE_MYSQL) && \
!defined(ODB_DATABASE_SQLITE) && \
+ !defined(ODB_DATABASE_PGSQL) && \
!defined(ODB_DATABASE_COMMON)
#pragma db view object(obj1 = o1) object(obj2 = o2 full: o1::n == o2::n)