SQLServer: Mark a deferred invocation lambda as mutable

Otherwise the `move(result)` statement inside the lambda does not
actually move anything, because `result` is constant without the mutable
attribute. Caught by clangd.
This commit is contained in:
Timothy Flynn 2022-12-29 15:52:46 -05:00 committed by Andreas Kling
parent 21255cb2b8
commit c08956028a

View file

@ -134,7 +134,7 @@ void SQLStatement::next(SQL::ExecutionID execution_id, SQL::ResultSet result, si
auto result_row = result.take_first();
client_connection->async_next_result(statement_id(), execution_id, result_row.row.take_data());
deferred_invoke([this, execution_id, result = move(result), result_size]() {
deferred_invoke([this, execution_id, result = move(result), result_size]() mutable {
next(execution_id, move(result), result_size);
});
} else {