-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause #5160
Comments
See #2311 There is no real fix for this currently. You can set the connection option I think the answer is the SqlServer driver needs to be modified so it uses |
Hey, thank you for your reply. I have read #2311 and try with Is there any possibility to upgrade SqlServer driver to use I'm willing to work on this feature, but I need just few tips from where I need to start. |
This is a problem for me to. I'm inserting into a table with a trigger and i need the identity back on the insert. Any update on updating the driver? |
C'mon guyz, we need this, let's do it 😃 |
@pleerock Do you have any guidance on this, are you happy for someone to make a PR? This issue is quite serious. 🙁 I can't get rid of the triggers on my table so I had to set |
I made a PR: #5361 |
Hi, sorry for late response. |
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[x]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
I have tried to insert Person into MSSQL table which contains one trigger, and I have run into this exception:
Typeorm tried to execute this query:
I have used database
AdventureWorks2017
that is open source and available on Microsoft online websites.This is my
Person
entity:And this is my code for adding new person:
Best regards
The text was updated successfully, but these errors were encountered: