Skip to content

Commit

Permalink
Fix bug in warn_if_repeatable_read (introduced in PR celery#110). (ce…
Browse files Browse the repository at this point in the history
  • Loading branch information
arnau126 authored Feb 28, 2020
1 parent bc5fdee commit d6ebd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_celery_results/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def warn_if_repeatable_read(self):
# variables: the former has tx_isolation, while the latter has
# transaction_isolation
if cursor.execute("SHOW VARIABLES WHERE variable_name IN "
"('tx_isolation", "transaction_isolation');"):
"('tx_isolation', 'transaction_isolation');"):
isolation = cursor.fetchone()[1]
if isolation == 'REPEATABLE-READ':
warnings.warn(TxIsolationWarning(W_ISOLATION_REP.strip()))
Expand Down

0 comments on commit d6ebd87

Please sign in to comment.