aboutsummaryrefslogtreecommitdiff
path: root/common/auto/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/auto/test.hxx')
-rw-r--r--common/auto/test.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/auto/test.hxx b/common/auto/test.hxx
index 6f8106f..6810767 100644
--- a/common/auto/test.hxx
+++ b/common/auto/test.hxx
@@ -30,4 +30,13 @@ private:
friend class odb::access;
};
+// Test the case where the object has just the auto id.
+//
+#pragma db object
+struct auto_only
+{
+ #pragma db auto id
+ unsigned long id_;
+};
+
#endif // TEST_HXX