Mercurial > hg > orthanc-databases
diff Framework/Common/ImplicitTransaction.cpp @ 214:ab96698c73a3
removed useless information about read-only in ITransaction and IPrecompiledStatement
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Mar 2021 13:56:26 +0100 |
parents | 3236894320d6 |
children | 16aac0287485 |
line wrap: on
line diff
--- a/Framework/Common/ImplicitTransaction.cpp Wed Mar 24 15:59:23 2021 +0100 +++ b/Framework/Common/ImplicitTransaction.cpp Thu Mar 25 13:56:26 2021 +0100 @@ -33,8 +33,7 @@ ImplicitTransaction::ImplicitTransaction() : - state_(State_Ready), - readOnly_(true) + state_(State_Ready) { } @@ -127,11 +126,6 @@ CheckStateForExecution(); std::unique_ptr<IResult> result(ExecuteInternal(statement, parameters)); - if (!statement.IsReadOnly()) - { - readOnly_ = false; - } - state_ = State_Executed; return result.release(); } @@ -143,11 +137,6 @@ CheckStateForExecution(); ExecuteWithoutResultInternal(statement, parameters); - if (!statement.IsReadOnly()) - { - readOnly_ = false; - } - state_ = State_Executed; }