summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2017-11-15 01:40:44 +0500
committerTim Graham <timograham@gmail.com>2017-11-14 15:40:44 -0500
commit967450a3bf940c43db891fe1e2ef3bcf73456ff8 (patch)
tree2f06538979adff20bab776cb5588c6ceafa76c45 /tests
parentbc95314ca6af0b5e993ae07fdc7d8e6166d3b8ca (diff)
Fixed #28794 -- Fixed tx_isolation deprecation warning on MySQL 5.7.20+.
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/mysql/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/backends/mysql/tests.py b/tests/backends/mysql/tests.py
index c9d47eb012..467cd5abc5 100644
--- a/tests/backends/mysql/tests.py
+++ b/tests/backends/mysql/tests.py
@@ -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):