comparison 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
comparison
equal deleted inserted replaced
213:c2e4a909de0e 214:ab96698c73a3
31 { 31 {
32 static bool isErrorOnDoubleExecution_ = false; 32 static bool isErrorOnDoubleExecution_ = false;
33 33
34 34
35 ImplicitTransaction::ImplicitTransaction() : 35 ImplicitTransaction::ImplicitTransaction() :
36 state_(State_Ready), 36 state_(State_Ready)
37 readOnly_(true)
38 { 37 {
39 } 38 }
40 39
41 40
42 ImplicitTransaction::~ImplicitTransaction() 41 ImplicitTransaction::~ImplicitTransaction()
125 const Dictionary& parameters) 124 const Dictionary& parameters)
126 { 125 {
127 CheckStateForExecution(); 126 CheckStateForExecution();
128 std::unique_ptr<IResult> result(ExecuteInternal(statement, parameters)); 127 std::unique_ptr<IResult> result(ExecuteInternal(statement, parameters));
129 128
130 if (!statement.IsReadOnly())
131 {
132 readOnly_ = false;
133 }
134
135 state_ = State_Executed; 129 state_ = State_Executed;
136 return result.release(); 130 return result.release();
137 } 131 }
138 132
139 133
141 const Dictionary& parameters) 135 const Dictionary& parameters)
142 { 136 {
143 CheckStateForExecution(); 137 CheckStateForExecution();
144 ExecuteWithoutResultInternal(statement, parameters); 138 ExecuteWithoutResultInternal(statement, parameters);
145 139
146 if (!statement.IsReadOnly())
147 {
148 readOnly_ = false;
149 }
150
151 state_ = State_Executed; 140 state_ = State_Executed;
152 } 141 }
153 142
154 143
155 void ImplicitTransaction::SetErrorOnDoubleExecution(bool isError) 144 void ImplicitTransaction::SetErrorOnDoubleExecution(bool isError)