Tuesday, September 14, 2010

django-mssql project... trying to update identity column?

Hi guys - I'm not sure if this is the best place to post questions
about django-mssql but I couldn't find any mailing list specific to
that?

Anyway, I'm using django-mssql with the OSQA project (http://
www.osqa.net/) but it's doing an UPDATE statement like this:

UPDATE table SET fieldA='xyz',fieldB='abc',id=2 WHERE id in (2)

which is failing because ID is an auto-generated identity column which
has been created using the django tools (so don't think there's a
mapping issue or anything). Do you have any idea why this would be?

Many thanks

James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment