summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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):