From 61ff4c0458fa0362e054970efbcc21d66240ccc9 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <boris@codesynthesis.com>
Date: Thu, 26 Apr 2012 11:29:05 +0200
Subject: Make session optional

---
 qt/common/smart-ptr/driver.cxx | 1 +
 qt/common/smart-ptr/makefile   | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

(limited to 'qt/common')

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)
-- 
cgit v1.1