Skip to content

Commit eb6d7d2

Browse files
committed
update comments
1 parent 592fe4f commit eb6d7d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/RunSql.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)