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

Fails to insert record into table with triggers on it #8

Closed
me21 opened this issue Dec 20, 2013 · 1 comment
Closed

Fails to insert record into table with triggers on it #8

me21 opened this issue Dec 20, 2013 · 1 comment

Comments

@me21
Copy link

me21 commented Dec 20, 2013

When I try to insert a record into table with triggers on it (SQL Server 2008), I get the following error:
The target table of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.

A similar error has already been discussed and fixed in https://github.com/avidal/django-pyodbc/issues/1. Please merge the fix to your fork.
Thanks!

michiya added a commit that referenced this issue Dec 27, 2013
@michiya
Copy link
Owner

michiya commented Dec 27, 2013

@me21 Thank you for the report. I have upgraded the package on PyPI to the new one which contains the fix. Try it out, and let me know if the new one still gives you the same error.

@michiya michiya closed this as completed Dec 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants