File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -190,13 +190,14 @@ bool RunSql::executeNextStatement()
190190 case SQLITE_ROW:
191191 {
192192 // If we get here, the SQL statement returns some sort of data. So hand it over to the model for display. Don't set the modified flag
193- // because statements that display data don't change data as well.
193+ // because statements that display data don't change data as well, except if the statement are one of INSERT/UPDATE/DELETE that could
194+ // return datas with the RETURNING keyword.
194195
195196 releaseDbAccess ();
196197
197198 lk.lock ();
198199
199- // in case of usage of RETURNING keyword with INSERT/UPDATE/DELETE
200+ // Set the modified flag to true if the statement was one of INSERT/UPDATE/DELETE triggered by a possible RETURNING keyword.
200201 if (query_part_type == StatementType::InsertStatement || query_part_type == StatementType::UpdateStatement ||
201202 query_part_type == StatementType::DeleteStatement)
202203 modified = true ;
You can’t perform that action at this time.
0 commit comments