[odb-users] session_required exception when using custom session

Boris Kolpackov boris at codesynthesis.com
Mon Apr 4 10:46:24 EDT 2016

Hi Marcel,

Marcel Nehring <mne at qosmotec.com> writes:

>     if (!session::has_current ())
>       throw session_required ();
> So of course this will always throw since I do not use ODBs session
> implementation. I did, however, provide the --session-type command
> line option. I also see my custom implementation being used at other
> occasions.

Yes, that's a bug. I've fixed it by adding to the custom session interface:

static bool
_has_cache ();

"The _has_cache() function shall return true if the object cache is in
effect in the current thread."

This function is now called by the object loading view implementation.

Would you like a pre-release?


More information about the odb-users mailing list