[odb-users] Re: odb::not_in_transaction with query/query_one for test

Boris Kolpackov boris at codesynthesis.com
Mon Jan 27 09:01:24 EST 2020

Adnan RIHAN <axel50397 at gmail.com> writes:

> Could it be because I'm compiling my app with Qt's sql module (which
> includes sqlite) and libodb-sqlite (which links to build2's libsqlite3)?

It could be, though I would expect linking issues, not an exception
(thought who knows).

One way to find out is to try it with QCoreApplication rather that
QApplication (and only link QtCore). Here is code from one of ODB
examples that should work:


More information about the odb-users mailing list