diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-27 17:37:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-27 17:37:10 +0200 |
commit | 4672ac30870fb3d8d0a5cdf3faa82291eaa322cb (patch) | |
tree | ccbea11e11322a5aff9e28a8e8719a31c671e2da /common/query/basics/test.hxx | |
parent | f88348f72d5267f76fb338e3e96a111225cc2ec0 (diff) |
Fix member name conflicts in query support
Diffstat (limited to 'common/query/basics/test.hxx')
-rw-r--r-- | common/query/basics/test.hxx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/common/query/basics/test.hxx b/common/query/basics/test.hxx index 94f4a6e..3e61c57 100644 --- a/common/query/basics/test.hxx +++ b/common/query/basics/test.hxx @@ -81,4 +81,38 @@ operator<< (std::ostream& os, const person& p) return os; } +// Test member name conflicts (compilation-only test). +// +#pragma db namespace table("t2_") +namespace test2 +{ + #pragma db object + struct object + { + #pragma db id + int id; + }; + + #pragma db value + struct value + { + object* m_object; + }; + + #pragma db value + struct bar + { + value m_value; + }; + + #pragma db object + struct foo + { + #pragma db id + int id; + + bar m_value; + }; +} + #endif // TEST_HXX |