Mercurial > hg > orthanc-databases
diff Framework/MySQL/MySQLTransaction.cpp @ 16:9e419261f1c9
mysql storage area working
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Jul 2018 10:10:35 +0200 |
parents | 7cea966b6829 |
children | 6a574d810b98 |
line wrap: on
line diff
--- a/Framework/MySQL/MySQLTransaction.cpp Tue Jul 10 07:15:13 2018 +0200 +++ b/Framework/MySQL/MySQLTransaction.cpp Tue Jul 10 10:10:35 2018 +0200 @@ -35,7 +35,7 @@ readOnly_(true), active_(false) { - db_.Execute("START TRANSACTION"); + db_.Execute("START TRANSACTION", false); active_ = true; } @@ -48,7 +48,7 @@ try { - db_.Execute("ROLLBACK"); + db_.Execute("ROLLBACK", false); } catch (Orthanc::OrthancException&) { @@ -61,7 +61,7 @@ { if (active_) { - db_.Execute("ROLLBACK"); + db_.Execute("ROLLBACK", false); active_ = false; readOnly_ = true; } @@ -77,7 +77,7 @@ { if (active_) { - db_.Execute("COMMIT"); + db_.Execute("COMMIT", false); active_ = false; readOnly_ = true; }