aboutsummaryrefslogtreecommitdiff
path: root/mysql/truncation/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'mysql/truncation/test.hxx')
-rw-r--r--mysql/truncation/test.hxx34
1 files changed, 18 insertions, 16 deletions
diff --git a/mysql/truncation/test.hxx b/mysql/truncation/test.hxx
index b3128c0..b1aae1a 100644
--- a/mysql/truncation/test.hxx
+++ b/mysql/truncation/test.hxx
@@ -6,19 +6,15 @@
#define TEST_HXX
#include <string>
+#include <vector>
+
#include <odb/core.hxx>
#pragma db object table ("test")
struct object1
{
- object1 (unsigned long id)
- : id_ (id)
- {
- }
-
- object1 ()
- {
- }
+ object1 () {}
+ object1 (unsigned long id): id_ (id) {}
#pragma db id
unsigned long id_;
@@ -29,14 +25,8 @@ struct object1
#pragma db object table ("test")
struct object2
{
- object2 (unsigned long id)
- : id_ (id)
- {
- }
-
- object2 ()
- {
- }
+ object2 () {}
+ object2 (unsigned long id): id_ (id) {}
#pragma db id
unsigned long id_;
@@ -44,4 +34,16 @@ struct object2
std::string str_;
};
+#pragma db object
+struct container
+{
+ container () {}
+ container (unsigned long id) : id_ (id) {}
+
+ #pragma db id
+ unsigned long id_;
+
+ std::vector<std::string> vec_;
+};
+
#endif // TEST_HXX