Discussion:
[odb-users] recursive loading
MM
2018-07-14 16:22:07 UTC
Permalink
Does any of this make sense?
Perhaps you are loading the same object recursively. Try to create a
session before the transaction.
Hi Boris,

Indeed a session was always there.

In release mode, it works, but in debug mode:

This assertion in odb/sqlite/simple-object-result.txx : 61 is triggered:

assert (!statements_.locked ());

Does this indicate some unexpected recursion somewhere?
Boris Kolpackov
2018-07-16 14:06:02 UTC
Permalink
Post by MM
Does this indicate some unexpected recursion somewhere?
Yes, most likely. Recursive relationship loading can get quite tricky.

If you can provide a minimal test (i.e., header, test driver, and the
ODB compilation command line) that reproduces this problem, I can take
a look.

Boris

Loading...