]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- dont run sql mode config tests if we aren't on mysql
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Aug 2017 22:20:48 +0000 (18:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Aug 2017 22:20:48 +0000 (18:20 -0400)
Change-Id: Ia5a491ec505afed1511a17a167cd1f7d8371acd4

test/requirements.py

index 737d654ae3cd7b1d4d39a12745f642e9f44a51d9..1a8af2aed2ae5dda59d95ff2e4b987161214c6f9 100644 (file)
@@ -927,6 +927,9 @@ class DefaultRequirements(SuiteRequirements):
     @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]
 
@@ -935,6 +938,9 @@ class DefaultRequirements(SuiteRequirements):
     @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]