]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
restore uuid_data_type as closed at top level
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Feb 2024 23:11:32 +0000 (18:11 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Feb 2024 23:12:17 +0000 (18:12 -0500)
the supports_native_uuid attribute does NOT indicate
the UUID datatype being present, only that Uuid(native_uuid=True)
would be able to produce something. On SQL Server it produces
UNIQUEIDENTIFIER.  The current use for this requirement is
that of testing the uppercase UUID type that has to match
that exactly.

Change-Id: I050e5d1889f804ee3763b84828f2bd6a47dd265e

lib/sqlalchemy/testing/requirements.py

index 4c6c50b2967822d4f82a811f56fad199027a1ade..ee175524fb0847929314a157eb4b73683f06d126 100644 (file)
@@ -62,10 +62,7 @@ class SuiteRequirements(Requirements):
     def uuid_data_type(self):
         """Return databases that support the UUID datatype."""
 
-        return exclusions.skip_if(
-            lambda config: not config.db.dialect.supports_native_uuid,
-            "backend does not have a UUID datatype",
-        )
+        return exclusions.closed()
 
     @property
     def foreign_keys(self):