]> 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:14:33 +0000 (18:14 -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
(cherry picked from commit f932fc762d40f9b3bb305eb8db8b890483282502)

lib/sqlalchemy/testing/requirements.py

index c5dc52be885e8024caffdcc848207ee2594c3036..31aac741d48100ef953d48df7de112452a71529a 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):