#31632: Single queries without transaction do not follow AUTOCOMMIT -------------------------------------+------------------------------------- Reporter: Filipe Pina | Owner: nobody Type: Uncategorized | Status: new Component: Database layer | Version: 2.2 (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Florian Apolloner): Correction, `mysql-connector-python` works since it manually send `SET @@session.autocommit = OFF|ON` > yeah I came up to the same conclusion locally as well. It's crazy though given mysqlclient calls directly into mysql.h's mysql_autocommit. That is not the problem, the problem is that before it calls into mysql it checks the server state to see whether autocommit is on or off, it never even gets that far (at least not for autocommit=1): https://github.com/PyMySQL/mysqlclient- python/blob/4c1950148ba10e23017bd5190f9da6bdb347e6b3/MySQLdb/connections.py#L243 -- Ticket URL: <https://code.djangoproject.com/ticket/31632#comment:12> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.d7561b5aa15a19fca6c48914d93ee4d8%40djangoproject.com.