From: Mike Bayer Date: Wed, 24 Mar 2021 16:00:16 +0000 (-0400) Subject: open up window functions (ha ha) for mysql / mariadb X-Git-Tag: rel_1_4_3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc9f11c23e39e95e4d33572d04e74f74b0f20ed;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git open up window functions (ha ha) for mysql / mariadb MySQL 8 and MariaDB 10.2 support window functions so this should be turned on. Change-Id: Ic1fdd328f1f0def7dfc8451385c16ea81902074c --- diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index b3b0413856..20c3e89911 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -3777,8 +3777,7 @@ class Over(ColumnElement): This is a special operator against a so-called "window" function, as well as any aggregate function, which produces results relative to the result set - itself. It's supported only by certain database - backends. + itself. Most modern SQL backends now support window functions. """ diff --git a/test/requirements.py b/test/requirements.py index 33f5e7fd06..21e009188e 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -751,7 +751,14 @@ class DefaultRequirements(SuiteRequirements): @property def window_functions(self): return only_if( - ["postgresql>=8.4", "mssql", "oracle", "sqlite>=3.25.0"], + [ + "postgresql>=8.4", + "mssql", + "oracle", + "sqlite>=3.25.0", + "mysql>=8", + "mariadb>=10.2", + ], "Backend does not support window functions", )