diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-04 16:42:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-04 16:42:20 +0200 |
commit | 521577bfe361f78543458d4b01e259574e1a46bb (patch) | |
tree | a3f3405c1d14f6eee15ad5ce0d1dd65fe6297b02 /odb/relational | |
parent | 8c0ee3ba2db18ba759a5be502a89d31f3288d32e (diff) |
Add _has_cache() custom session interface, use in OLV implementation
Diffstat (limited to 'odb/relational')
-rw-r--r-- | odb/relational/source.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/relational/source.cxx b/odb/relational/source.cxx index a20406a..4e9a069 100644 --- a/odb/relational/source.cxx +++ b/odb/relational/source.cxx @@ -5235,7 +5235,7 @@ traverse_view (type& c) os << endl; if (need_session) - os << "if (!session::has_current ())" << endl + os << "if (!" << options.session_type () << "::_has_cache ())" << endl << "throw session_required ();" << endl; |