Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

includeOldValues: true with multiple rows update #66

Closed
ErikvdBurgwal opened this issue May 18, 2018 · 2 comments
Closed

includeOldValues: true with multiple rows update #66

ErikvdBurgwal opened this issue May 18, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@ErikvdBurgwal
Copy link

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

@christiandelbianco christiandelbianco self-assigned this May 18, 2018
@christiandelbianco christiandelbianco added this to the 7.3.0 milestone May 18, 2018
@christiandelbianco
Copy link
Collaborator

Thank for detailed info and - moreover - how to reproduce it.
Working on.

@christiandelbianco
Copy link
Collaborator

FIXED in version 7.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants