Fixed test failures which would occur with newer SQLite as of version 3.30
or greater, due to their addition of nulls ordering syntax as well as new
restrictions on aggregate functions. Pull request courtesy Nils Philippsen.
Fixes: #4920
Closes: #4921
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4921
Pull-request-sha:
e18534a9045786efdaf4963515222838c62e0300
Change-Id: Idb2fc96e23e7cc96cf96f586208c2db561518202
(cherry picked from commit
6b5d94da84452b125f6788f0e1472b94a43ffc16)
--- /dev/null
+.. change::
+ :tags: bug, tests
+ :tickets: 4920
+
+ Fixed test failures which would occur with newer SQLite as of version 3.30
+ or greater, due to their addition of nulls ordering syntax as well as new
+ restrictions on aggregate functions. Pull request courtesy Nils Philippsen.
+
+
@property
def nullsordering(self):
"""Target backends that support nulls ordering."""
- return fails_on_everything_except("postgresql", "oracle", "firebird")
+ return fails_on_everything_except("postgresql", "oracle", "firebird",
+ "sqlite >= 3.30.0")
@property
def reflects_pk_names(self):
"""target database can select an aggregate from a subquery that's
also using an aggregate"""
- return skip_if(["mssql"])
+ return skip_if(["mssql", "sqlite"])
@property
def array_type(self):