diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-21 11:01:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-20 15:45:46 +0200 |
commit | 07c02dcecd806810226db734f193bdcf4df8cae7 (patch) | |
tree | f7e8a7d0a661b572971afdc7aa98254f0ca8c38d /common/auto/test.hxx | |
parent | 8f8c17009691694fe42651a13972140bf4112678 (diff) |
Add test for object with only auto-id member
This tests the generation of the INSERT ... DEFAULT VALUES special syntax
in some databases.
Diffstat (limited to 'common/auto/test.hxx')
-rw-r--r-- | common/auto/test.hxx | 9 |
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 |