You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, TinyORM is asserting no other transaction on the same connection is in partially commited state when beginTransaction is invoked.
However, the Q_ASSERT statements are disabled when QT_NO_DEBUG is defined during compilation, i.e. when compiling in release mode. If TinyORM needs it's consumers to explicit distinction between top level transactions and truely nested transactions / savepoints, exceptions provide a more reliable error handling mechanism then assertions do
The text was updated successfully, but these errors were encountered:
SchaichAlonso
changed the title
DB::startTransaction assert()-ing
DB::beginTransaction assert()-ing
Oct 22, 2023
Currently, TinyORM is asserting no other transaction on the same connection is in partially commited state when beginTransaction is invoked.
However, the
Q_ASSERT
statements are disabled when QT_NO_DEBUG is defined during compilation, i.e. when compiling in release mode. If TinyORM needs it's consumers to explicit distinction between top level transactions and truely nested transactions / savepoints, exceptions provide a more reliable error handling mechanism then assertions doThe text was updated successfully, but these errors were encountered: