[odb-users] operation can only be performed in transaction

Boris Kolpackov boris at codesynthesis.com
Tue May 7 10:16:11 EDT 2019


G G <gregs_ymb at yahoo.com> writes:

> db->execute( pragmaKey )
> 
> Why???
>
> "The execute() functions allow us to execute native database statements on
>  the connection. Their semantics are equivalent to the database::execute()
>  functions (Section 3.12, "Executing NativeSQL Statements") except that they
>  can be legally called outside a transaction."

Because you are executing it on a database, not a connection.



More information about the odb-users mailing list