]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixes: #4390
authorjonathan vanasco <jonathan@2xlp.com>
Mon, 27 Sep 2021 16:51:32 +0000 (12:51 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 8 Nov 2021 18:26:30 +0000 (13:26 -0500)
commit8fe9984637b79f582728d4767e973567704b1d37
tree3c3a2cf0d4b8b7910ab614e14dfc920f4cb6090f
parent9ee47d90d804dc815685d42913ad170e04c38659
Fixes: #4390
Deprecated an undocumented loader option syntax ``".*"``, which appears to
be no different than passing a single asterisk, and will emit a deprecation
warning if used. This syntax may have been intended for something but there
is currently no need for it.

The original ticket was to document the `.{WILDCARD}` (e.g. `.*`) format,
however this format does not appear to be used or needed by SQLAlchemy
and is likely not used by any projects or developers.

This PR invokes `util.warn_deprecated` to notify users this functionality
is deprecated, and directs them to the #4390 issue if they actually use it.

Assuming there are no complaints over this warning in the coming months,
this code can be removed in a future major release.

Change-Id: I665e3ac26be0a7819246a2ee56fb5a5f32980c91
(cherry picked from commit 2432d2ed0b28480c0e1004a47aa74238865105b5)
doc/build/changelog/unreleased_14/4390.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_default_strategies.py
test/orm/test_deferred.py
test/orm/test_deprecations.py