Change-Id: Ia5a491ec505afed1511a17a167cd1f7d8371acd4
@property
def mysql_zero_date(self):
def check(config):
+ if not against(config, 'mysql'):
+ return False
+
row = config.db.execute("show variables like 'sql_mode'").first()
return not row or "NO_ZERO_DATE" not in row[1]
@property
def mysql_non_strict(self):
def check(config):
+ if not against(config, 'mysql'):
+ return False
+
row = config.db.execute("show variables like 'sql_mode'").first()
return not row or "STRICT_TRANS_TABLES" not in row[1]