aboutsummaryrefslogtreecommitdiff
path: root/qt/common/smart-ptr
diff options
context:
space:
mode:
Diffstat (limited to 'qt/common/smart-ptr')
-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)