From 521577bfe361f78543458d4b01e259574e1a46bb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Apr 2016 16:42:20 +0200 Subject: Add _has_cache() custom session interface, use in OLV implementation --- odb/relational/source.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb') 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; -- cgit v1.1