aboutsummaryrefslogtreecommitdiff
path: root/pgsql/template/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-25 11:32:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-25 11:32:54 +0200
commitfa31e7c6a729a5e9772bfd775d19501996652f30 (patch)
treeab229424af42249109be404c9c22d02f98efe1fe /pgsql/template/test.hxx
parent4f59995242d894baa041a8171d420a18b43ceb8c (diff)
Fix PostgreSQL test template to do the same as in other databases
Diffstat (limited to 'pgsql/template/test.hxx')
-rw-r--r--pgsql/template/test.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/pgsql/template/test.hxx b/pgsql/template/test.hxx
index 9916172..7f7bb99 100644
--- a/pgsql/template/test.hxx
+++ b/pgsql/template/test.hxx
@@ -5,4 +5,22 @@
#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