]> 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:25:51 +0000 (13:25 -0500)
commit2432d2ed0b28480c0e1004a47aa74238865105b5
tree14c0478ec6a8e54a82e0fa8b52652184a93a2220
parentd80f5277e1c6a6043408244288effb08713c8d70
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
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