mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-16 12:28:08 +00:00
fix: sqlite transaction bug
This commit is contained in:
@@ -61,9 +61,9 @@ bool SQLiteDatabase::GetAutoCommit() {
|
||||
|
||||
void SQLiteDatabase::SetAutoCommit(bool value) {
|
||||
if (value) {
|
||||
if (GetAutoCommit()) con->compileStatement("BEGIN;").execDML();
|
||||
} else {
|
||||
if (!GetAutoCommit()) con->compileStatement("COMMIT;").execDML();
|
||||
} else {
|
||||
if (GetAutoCommit()) con->compileStatement("BEGIN;").execDML();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user