# HG changeset patch # User Goffi # Date 1544472380 -3600 # Node ID 453a12ff6f51b5d9b5d027b2fc549d0ce234578f # Parent 45189c8bd16562f6318c1422bf21f9ecdf7e5032 core (memory/sqlite): do not call commitStatements if there is nothing to commit in checkUpdates diff -r 45189c8bd165 -r 453a12ff6f51 sat/memory/sqlite.py --- a/sat/memory/sqlite.py Mon Dec 10 20:34:45 2018 +0100 +++ b/sat/memory/sqlite.py Mon Dec 10 21:06:20 2018 +0100 @@ -990,7 +990,7 @@ update_data = DATABASE_SCHEMAS[version] except KeyError: raise exceptions.InternalError("Missing update definition (version %d)" % version) - if "specific" in update_data: + if "specific" in update_data and update_raw: # if we have a specific, we must commit current statements # because a specific may modify database itself, and the database # must be in the expected state of the previous version.