WilliamRen / django-pyodbc

Automatically exported from code.google.com/p/django-pyodbc
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

django 1.4 "OUTPUT clause without INTO clause" error if triggers on table #125

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Issue for github version
https://github.com/avidal/django-pyodbc/commits/django-1.4

If triggers are enabled on table, django returns error:
ProgrammingError: ('42000', "[42000] [Microsoft][SQL Native Client][SQL 
Server]The target table 'aaa.dbo.Fin_FAQ' of the DML statement cannot have any 
enabled triggers if the statement contains an OUTPUT clause without INTO 
clause. (334) (SQLExecDirectW); [42000] [Microsoft][SQL Native Client][SQL 
Server]Statement(s) could not be prepared. (8180)")

For earlier versions of the django it has been solved  by
issue 101 http://code.google.com/p/django-pyodbc/issues/detail?id=101

Does anybody solved this for django-1.4?

Original issue reported on code.google.com by branisla...@gmail.com on 18 May 2012 at 8:31