Page MenuHomePhabricator

D5433.id17717.diff
No OneTemporary

D5433.id17717.diff

diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
--- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
+++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
@@ -544,6 +544,9 @@
if (!rc) {
migration_msg << "migration " << idx << " failed." << std::endl;
Logger::log(migration_msg.str());
+ if (shouldBeInTransaction) {
+ sqlite3_exec(db, "ROLLBACK;", nullptr, nullptr, nullptr);
+ }
break;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 1:33 AM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495832
Default Alt Text
D5433.id17717.diff (560 B)

Event Timeline