Skip to content

Commit

Permalink
Supports_transactions fallback for Django 1.3 & MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Feb 5, 2014
1 parent 74356b2 commit 66735cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion johnny/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def supports_transactions(con):
features = con.features
vendor = con.vendor
if features.supports_transactions:
if vendor == 'mysql' and features._mysql_storage_engine != 'InnoDB':
if vendor == 'mysql' \
and getattr(features, '_mysql_storage_engine', '') != 'InnoDB':
print('MySQL connection reports transactions supported '
'but storage engine != InnoDB.')
return False
Expand Down

0 comments on commit 66735cb

Please sign in to comment.