aboutsummaryrefslogtreecommitdiff
path: root/common/polymorphism
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-26 11:29:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-26 11:29:05 +0200
commit61ff4c0458fa0362e054970efbcc21d66240ccc9 (patch)
tree1a3376fce2d9a2f79583911529549c333fff23ea /common/polymorphism
parenta93ad74833e3a99a1421fd695a01a1fb15d1f2dd (diff)
Make session optional
Diffstat (limited to 'common/polymorphism')
-rw-r--r--common/polymorphism/driver.cxx1
-rw-r--r--common/polymorphism/test.hxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/common/polymorphism/driver.cxx b/common/polymorphism/driver.cxx
index 0c9bf1e..09e3321 100644
--- a/common/polymorphism/driver.cxx
+++ b/common/polymorphism/driver.cxx
@@ -10,6 +10,7 @@
#include <iostream>
#include <odb/database.hxx>
+#include <odb/session.hxx>
#include <odb/transaction.hxx>
#include <common/common.hxx>
diff --git a/common/polymorphism/test.hxx b/common/polymorphism/test.hxx
index 99711b5..d0a6ed5 100644
--- a/common/polymorphism/test.hxx
+++ b/common/polymorphism/test.hxx
@@ -552,7 +552,7 @@ namespace test7
using std::tr1::shared_ptr;
#endif
- #pragma db object polymorphic pointer(shared_ptr)
+ #pragma db object polymorphic pointer(shared_ptr) session
struct root
{
virtual ~root () {}