aboutsummaryrefslogtreecommitdiff
path: root/qt
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 /qt
parenta93ad74833e3a99a1421fd695a01a1fb15d1f2dd (diff)
Make session optional
Diffstat (limited to 'qt')
-rw-r--r--qt/common/smart-ptr/driver.cxx1
-rw-r--r--qt/common/smart-ptr/makefile3
2 files changed, 3 insertions, 1 deletions
diff --git a/qt/common/smart-ptr/driver.cxx b/qt/common/smart-ptr/driver.cxx
index 4af2c05..28ad9a2 100644
--- a/qt/common/smart-ptr/driver.cxx
+++ b/qt/common/smart-ptr/driver.cxx
@@ -13,6 +13,7 @@
#include <QtCore/QCoreApplication>
#include <odb/database.hxx>
+#include <odb/session.hxx>
#include <odb/transaction.hxx>
#include <common/common.hxx>
diff --git a/qt/common/smart-ptr/makefile b/qt/common/smart-ptr/makefile
index 0a35eae..8f3e087 100644
--- a/qt/common/smart-ptr/makefile
+++ b/qt/common/smart-ptr/makefile
@@ -44,7 +44,8 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
$(gen) $(dist): export odb_options += --database $(db_id) \
---profile qt/smart-ptr --generate-schema --table-prefix qt_smart_ptr_
+--profile qt/smart-ptr --generate-schema --generate-session \
+--table-prefix qt_smart_ptr_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options) $(odb_qt.l.cpp-options) \
$(qt_core.l.cpp-options)