aboutsummaryrefslogtreecommitdiff
path: root/common/view/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-21 13:00:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-21 13:00:34 +0200
commitb434d9d0245aa03879155fb830613f471af12976 (patch)
treea4f683e0a3e1dcecee4cd549216f1653f7710fd9 /common/view/driver.cxx
parent0da4038d5047d83f3dbc86a06740d83b4fbf2ae5 (diff)
Rework const object handling
Now objects are always loaded as non-const and the object cache in session treats all objects as non-const.
Diffstat (limited to 'common/view/driver.cxx')
-rw-r--r--common/view/driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/view/driver.cxx b/common/view/driver.cxx
index 847d21b..7d921cd 100644
--- a/common/view/driver.cxx
+++ b/common/view/driver.cxx
@@ -323,7 +323,7 @@ main (int argc, char* argv[])
//
{
typedef odb::query<view3> query;
- typedef odb::result<view3> result;
+ typedef odb::result<const view3> result; // Test const result.
{
transaction t (db->begin ());