You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When modifying a row that has database-generated values, we currently use UPDATE+SELECT:
UPDATE [WithSomeDatabaseGenerated] SET [Data2] = @p0
WHERE [Id] = @p1;
SELECT [Data1]
FROM [WithSomeDatabaseGenerated]
WHERE @@ROWCOUNT =1AND [Id] = @p1;
We could use the RETURNING clause (SQL Server OUTPUT) to reduce this to one statement, like we're doing for INSERT in #27372. This would also allow removing the transaction.
For SQL Server with triggers, we would keep the above.
The text was updated successfully, but these errors were encountered:
When modifying a row that has database-generated values, we currently use UPDATE+SELECT:
We could use the RETURNING clause (SQL Server OUTPUT) to reduce this to one statement, like we're doing for INSERT in #27372. This would also allow removing the transaction.
For SQL Server with triggers, we would keep the above.
The text was updated successfully, but these errors were encountered: