#9409: OperationalError: database is locked with Python 2.6 multiprocessing and
SQLite backend
------------------------------------------+---------------------------------
 Reporter:  mrts                          |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.0       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 Running the attached test cases in Ubuntu Hardy with Python 2.6, saving
 models to database fails with

 {{{
 Process ConcurrentAccess-79:
 Traceback (most recent call last):
   File "/usr/local/lib/python2.6/multiprocessing/process.py", line 231, in
 _bootstrap
     self.run()
   File "./db_locked_error.py", line 18, in run
     f.save()
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/models/base.py", line 307, in save
     self.save_base(force_insert=force_insert, force_update=force_update)
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/models/base.py", line 379, in save_base
     result = manager._insert(values, return_id=update_pk)
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/models/manager.py", line 138, in _insert
     return insert_query(self.model, values, **kwargs)
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/models/query.py", line 888, in insert_query
     return query.execute_sql(return_id)
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/models/sql/subqueries.py", line 308, in execute_sql
     cursor = super(InsertQuery, self).execute_sql(None)
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/models/sql/query.py", line 1700, in execute_sql
     cursor.execute(sql, params)
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/backends/util.py", line 19, in execute
     return self.cursor.execute(sql, params)
   File "/usr/local/lib/python2.6/site-packages/Django-1.0_final-
 py2.6.egg/django/db/backends/sqlite3/base.py", line 167, in execute
     return Database.Cursor.execute(self, query, params)
 OperationalError: database is locked
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9409>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to