aboutsummaryrefslogtreecommitdiff
path: root/src/sql/SqlExec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/SqlExec.cpp')
-rw-r--r--src/sql/SqlExec.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/sql/SqlExec.cpp b/src/sql/SqlExec.cpp
index 732b2f1..bdb0fbd 100644
--- a/src/sql/SqlExec.cpp
+++ b/src/sql/SqlExec.cpp
@@ -12,7 +12,6 @@ namespace odhtdb
{
std::string errMsg = "Failed to prepare sqlite statement, error: ";
errMsg += sqlite3_errmsg(db);
- sqlite3_exec(db, "ROLLBACK", 0, 0, 0);
throw SqlExecException(errMsg);
}
}
@@ -37,7 +36,6 @@ namespace odhtdb
errMsg += " parameters, got ";
errMsg += std::to_string(args.size());
errMsg += " arguments";
- sqlite3_exec(db, "ROLLBACK", 0, 0, 0);
throw SqlExecException(errMsg);
}
@@ -49,7 +47,6 @@ namespace odhtdb
{
std::string errMsg = "Failed to bind param, error code: ";
errMsg += std::to_string(rc);
- sqlite3_exec(db, "ROLLBACK", 0, 0, 0);
throw SqlExecException(errMsg);
}
++paramIndex;
@@ -60,7 +57,6 @@ namespace odhtdb
{
std::string errMsg = "Failed to perform sql exec, error: ";
errMsg += sqlite3_errmsg(db);
- sqlite3_exec(db, "ROLLBACK", 0, 0, 0);
throw SqlExecException(errMsg);
}
}