Skip to content

Commit

Permalink
Add support for triggers that modify values in the inserted/updated r…
Browse files Browse the repository at this point in the history
…ow to SQL Server

For inserts inner join the INSERTED table instead of reading values directly from it.
For updates use the relationat implementation that doesn't use INSERTED table.

Fixes #6474
  • Loading branch information
AndriySvyryd committed Oct 4, 2016
1 parent 9cc618f commit 1ece8e5
Show file tree
Hide file tree
Showing 6 changed files with 256 additions and 197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ protected virtual ResultSetMapping AppendSelectAffectedCommand(
AppendFromClause(commandStringBuilder, name, schema);
// TODO: there is no notion of operator - currently all the where conditions check equality
AppendWhereAffectedClause(commandStringBuilder, conditionOperations);
commandStringBuilder.Append(SqlGenerationHelper.StatementTerminator).AppendLine();
commandStringBuilder.Append(SqlGenerationHelper.StatementTerminator).AppendLine()
.AppendLine();

return ResultSetMapping.LastInResultSet;
}
Expand Down
Loading

0 comments on commit 1ece8e5

Please sign in to comment.