diff --git a/src/engine/sql/account.c b/src/engine/sql/account.c index 4e67c928ba..754a309a3e 100644 --- a/src/engine/sql/account.c +++ b/src/engine/sql/account.c @@ -486,6 +486,7 @@ pgend_account_commit_edit (Backend * bend, PWARN(" account data in engine is newer\n" " account must be rolled back. This function\n" " is not completely implemented !! \n"); + xaccBackendSetError (&be->be, ERR_BACKEND_MODIFIED); LEAVE ("rolled back"); return 445; } diff --git a/src/engine/sql/txn.c b/src/engine/sql/txn.c index 63d78cfc3b..4e42f51234 100644 --- a/src/engine/sql/txn.c +++ b/src/engine/sql/txn.c @@ -833,6 +833,7 @@ pgend_trans_commit_edit (Backend * bend, * routine. Our rollback routine updates from the latest in * the sql database, and voila! we are good to go. */ + xaccBackendSetError (&be->be, ERR_BACKEND_MODIFIED); return 666; /* hack alert- hard coded literal */ } } @@ -908,6 +909,7 @@ pgend_trans_rollback_edit (Backend * bend, Transaction * trans) if (-1 < pgendTransactionGetDeletedVersion (be, trans)) { LEAVE ("destroyed"); + xaccBackendSetError (&be->be, ERR_BACKEND_MOD_DESTROY); return BACKEND_ROLLBACK_DESTROY; }