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
Hi,
When using the option 'includeOldValues: true', I get an exception when updating more than one row, caused by the SqlTableDependency-trigger;
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
I assume it is caused by this statement inside the trigger:
BEGIN
SET @dmlType = 'Update'
INSERT INTO @modifiedRecordsTable SELECT [OrderNumber], (SELECT [OrderNumber] FROM DELETED),.......
END
To reproduce, execute a query like 'UPDATE [Order] SET OrderNumber = OrderNumber WHERE 1=1;'
Best regards,
Erik
The text was updated successfully, but these errors were encountered:
Hi,
When using the option 'includeOldValues: true', I get an exception when updating more than one row, caused by the SqlTableDependency-trigger;
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
I assume it is caused by this statement inside the trigger:
BEGIN
SET @dmlType = 'Update'
INSERT INTO @modifiedRecordsTable SELECT [OrderNumber], (SELECT [OrderNumber] FROM DELETED),.......
END
To reproduce, execute a query like 'UPDATE [Order] SET OrderNumber = OrderNumber WHERE 1=1;'
Best regards,
Erik
The text was updated successfully, but these errors were encountered: