#22309: error accessing django.db.connection.features?
-------------------------------------+-------------------------------------
Reporter: lucastan@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Database layer | Version: 1.6
(models, ORM) | Resolution: needsinfo
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by anonymous):
Ok, I have resolved this issue. The whole problem is that the
supports_Transactions method actually creates a table and drop it to test
transaction. Due to the privileges, it couldn't drop a table , resulting
in leave_transaction_management throwing an error due to an incomplete
transaction.
So my question is: is the supports_Transactions method safe for use in a
multi-process django app, since multiple threads could create and drop the
same table concurrently? I suggest to create a unique name for the table
based on UUID or some sort.
--
Ticket URL: <https://code.djangoproject.com/ticket/22309#comment:4>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/076.8641f5ecba9042270258067bc9706687%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.