标签:bsp 修改 cached else def sql 判断 var cti
“Unknown system variable ‘transaction_isolation‘”
解决办法:修改django/db/backends/mysql/base.py 文件大概240行左右如下部分(增添一个判断条件)
@cached_property def transaction_isolation_variable(self): return ‘tx_isolation‘ if self.mysql_version < (5, 7, 20) or self.mysql_version > (10, 0, 10) else ‘transaction_isolation‘
标签:bsp 修改 cached else def sql 判断 var cti
原文地址:http://www.cnblogs.com/xiepingfu/p/7955457.html