mirror of
https://github.com/django/django.git
synced 2025-11-24 21:00:12 +00:00
Fixed #28794 -- Fixed tx_isolation deprecation warning on MySQL 5.7.20+.
This commit is contained in:
parent
bc95314ca6
commit
967450a3bf
2 changed files with 7 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ class IsolationLevelTests(TestCase):
|
|||
@staticmethod
|
||||
def get_isolation_level(connection):
|
||||
with connection.cursor() as cursor:
|
||||
cursor.execute("SELECT @@session.tx_isolation")
|
||||
cursor.execute("SELECT @@session.%s" % connection.transaction_isolation_variable)
|
||||
return cursor.fetchone()[0]
|
||||
|
||||
def test_auto_is_null_auto_config(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue