Django and SQL Server 2005 - Zombie status? -


i'm using django 1.2 , django-mssql.

while performing following

for unicorn in unicorn.objects.all():     print unicorn.color 

i'm getting following error @ around 100th iteration:

com_error: (-2147352567, 'exception occurred.', (0, u'microsoft sql server nativ e client 10.0', u'the object in zombie state. object may enter zombie state when either itransaction::commit or itransaction::abort called, or when storage object created , not yet released.', none, 0, -2147418113), non e)


any idea? bugging me... starting hate whole windows server world... :(

i had similar problem , resolved forcing full queryset retrieved before using in loop. so, try this:

for unicorn in list(unicorn.objects.all()):     print unicorn.color 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -