#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):
If you ask me this is a mysqlclient bug:
{{{
#!/usr/bin/env python
import MySQLdb as Database
db1 = Database.connect(
host="127.0.0.1",
user="root",
charset="utf8",
db="mysql",
client_flag=2,
autocommit=True,
)
print(db1.get_autocommit())
db2 = Database.connect(
host="127.0.0.1",
user="root",
charset="utf8",
db="mysql",
client_flag=2,
autocommit=False,
)
print(db2.get_autocommit())
}}}
The result is true in both cases!
--
Ticket URL: <https://code.djangoproject.com/ticket/31632#comment:9>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.d75302b79a7cf89f6a4748aa538a856f%40djangoproject.com.