]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Deprecate ``DISTINCT ON`` when not targeting PostgreSQL
authorFederico Caselli <cfederico87@gmail.com>
Thu, 16 Apr 2020 21:16:32 +0000 (23:16 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Apr 2020 15:28:51 +0000 (11:28 -0400)
commit07d6d211f23f1d9d1d69fd54e8054bccd515bc8c
tree321a19e49f8918ec38bba96bf4c062633801bd26
parent2f617f56f2acdce00b88f746c403cf5ed66d4d27
Deprecate ``DISTINCT ON`` when not targeting PostgreSQL

Deprecate usage of ``DISTINCT ON`` in dialect other than PostgreSQL.
Previously this was silently ignored.
Deprecate old usage of string distinct in MySQL dialect

Fixes: #4002
Change-Id: I38fc64aef75e77748083c11d388ec831f161c9c9
14 files changed:
doc/build/changelog/unreleased_14/4002.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_select.py
test/dialect/mysql/test_deprecations.py
test/requirements.py
test/sql/test_compiler.py