]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve error messages in the area of loader options
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Jan 2019 07:01:16 +0000 (02:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 26 Jan 2019 01:59:08 +0000 (20:59 -0500)
commit2eb3f211dae1188a6c1b3664f612f4628fd7b9a9
tree71d3df245ef979145ac3eabfeae1afe9cee68c05
parentf0b344ee9db22085ede906f1041cd6680e2682e3
Improve error messages in the area of loader options

Improved error messages emitted by the ORM in the area of loader option
traversal.  This includes early detection of mis-matched loader strategies
along with a clearer explanation why these strategies don't match.

Fixes: #4433
Change-Id: I3351b64241f7f62ca141a0be95085e6ef8ca6d32
16 files changed:
doc/build/changelog/unreleased_13/4433.rst [new file with mode: 0644]
lib/sqlalchemy/orm/exc.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/strategy_options.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/langhelpers.py
test/ext/declarative/test_basic.py
test/orm/inheritance/test_basic.py
test/orm/test_deprecations.py
test/orm/test_mapper.py
test/orm/test_options.py
test/orm/test_relationships.py
test/orm/test_sync.py
test/profiles.txt