Changes between Initial Version and Version 1 of Ticket #28804, comment 6


Ignore:
Timestamp:
Nov 17, 2017, 4:19:02 AM (7 years ago)
Author:
Gene Sem

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28804, comment 6

    initial v1  
    66So `transaction_isolation_variable()` should return `'tx_isolation'`
    77but returning `'transaction_isolation'` which is error value for mariadb.
     8
     9
     10Dirty workaround:
     11File `django/db/backends/mysql/base.py` lines 234-236
     12
     13
     14{{{
     15    @cached_property
     16    def transaction_isolation_variable(self):
     17        return 'tx_isolation' if self.mysql_version < (5, 7, 20) or self.mysql_version > (10, 0, 10) else 'transaction_isolation'
     18
     19}}}
     20
Back to Top