summaryrefslogtreecommitdiff
path: root/odb-tests/boost/mysql/template/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb-tests/boost/mysql/template/test.hxx')
-rw-r--r--odb-tests/boost/mysql/template/test.hxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/odb-tests/boost/mysql/template/test.hxx b/odb-tests/boost/mysql/template/test.hxx
new file mode 100644
index 0000000..7c97ca2
--- /dev/null
+++ b/odb-tests/boost/mysql/template/test.hxx
@@ -0,0 +1,25 @@
+// file : boost/mysql/template/test.hxx
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef TEST_HXX
+#define TEST_HXX
+
+#include <odb/core.hxx>
+
+#pragma db object
+struct object
+{
+ object (unsigned long id)
+ : id_ (id)
+ {
+ }
+
+ object ()
+ {
+ }
+
+ #pragma db id
+ unsigned long id_;
+};
+
+#endif // TEST_HXX