-
Notifications
You must be signed in to change notification settings - Fork 18
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
An error occurred with OUTPUT clause when a trigger is on the table #170
Comments
Can you show me the line of code you used to trigger this error? I think I know how to fix it, but I want to make sure I address your specific use case. |
And just to verify, are you using SQL Server? |
The error occur by Chain commands as these:
I'm using SQL Server 2016. |
Dev notes.
|
Why not provide an option to specify when to use a temporary table? |
I can provide a behavior override as an advanced feature, but it really should "just work" regardless if you have triggers or not. Otherwise adding a trigger to a pre-existing table becomes a breaking change. |
Inserts are now fixed. But they require a change to the Core library, so it won't be published until version 1.1. Still need to port the fix update, delete, and maybe upsert. |
Update/Delete are done. Confirmed that Upsert has the same bug. |
This feature will be part of this week's Chain 1.1. release. |
Chain commands as Insert, Update or Delete with return value generate a error when a trigger is on the table:
The target table 'TableName' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause
The text was updated successfully, but these errors were encountered: