#10476: Fix(?) model insert handling when autcommit=True for PostgreSQL <= 8.1 ------------------------------------------+--------------------------------- Reporter: mtredinnick | Owner: mtredinnick Status: new | Milestone: 1.1 beta Component: Database layer (models, ORM) | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- Need to wrap some isolation level changes around inserts when using older PostgreSQL versions so that we can reliably return the last insert ID. This is necessary because we use that value to set the primary key attribute on the model instance and there's potentially no other way to get the information for some models (with no other unique constraints).
When this is fixed, `settings.DATABASE_OPTIONS[autocommit] = True` can be an option again for those server versions. -- Ticket URL: <http://code.djangoproject.com/ticket/10476> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
