]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add req for nullable booleans
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Sep 2019 13:56:33 +0000 (09:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Sep 2019 13:57:12 +0000 (09:57 -0400)
Access doesn't allow for Yes/No columns to store null, so add
a rule for this.

Change-Id: If9316cd05733e39fbd59a6f54024f6740b563041
(cherry picked from commit 6cfbd5fefef51374d3c60fb58e094db00643faa0)

lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_types.py

index 1912f8b777a79adf387fb8610a4816f5dd0f9f5e..11f5d249f9416f10c0814b86b5f8c9a02d1fafda 100644 (file)
@@ -152,6 +152,12 @@ class SuiteRequirements(Requirements):
 
         return exclusions.closed()
 
+    @property
+    def nullable_booleans(self):
+        """Target database allows boolean columns to store NULL."""
+
+        return exclusions.open()
+
     @property
     def nullsordering(self):
         """Target backends that support nulls ordering."""
index 3cc0ec1f6ec4498aab1df0ea93441d6f41f748dd..37428c54544d03d18282f56e709d95af578f4d5b 100644 (file)
@@ -615,6 +615,7 @@ class BooleanTest(_LiteralRoundTripFixture, fixtures.TablesTest):
         eq_(row, (True, False))
         assert isinstance(row[0], bool)
 
+    @testing.requires.nullable_booleans
     def test_null(self):
         boolean_table = self.tables.boolean_table