[odb-users] Query problem
Boris Kolpackov
boris at codesynthesis.com
Fri Sep 28 06:45:00 EDT 2012
Hi Davide,
Davide Anastasia <Davide.Anastasia at qualitycapital.com> writes:
> I have a query statement, that runs fine: the tracer reports the correct
> query. I can run it on the pgadmin3 interface without problems and it
> gives the expected output. If I ask the size of the iterator, it will
> report the right number, but as soon as I deference the iterator with
> operator*, I get an segmentation fault (traced to boost::shared_ptr).
Seeing a stack trace would be helpful. Without any further information,
my guess would be you have a relationship cycle which requires a session
to load. So the first thing I would try is add a session and see if it
helps.
BTW, ODB 2.0.0 and later detect this problem and throw the session_required
exception.
Boris
More information about the odb-users
mailing list