[odb-users] not_in_transaction exception with sqlite

Łukasz Jaroszewski jaroszewski.luk at gmail.com
Mon May 21 08:31:07 EDT 2012


Hello,

I have just started using odb with sqlite database.
My problem is that, when I try to use create_schema or db->persist(x)
i get an exception: not_in_transaction.

odb::transaction t (db.begin ());
db.persist (x);
t.commit ();

t.has_current() returns true and db.execute("select * from sometabme")
returns exactly row count I have in db. So connection Is ok, I think.



More information about the odb-users mailing list