]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add `_WILDCARD_TOKEN` special case in `_chop_path`
authorMatthew Martin <phy1729@gmail.com>
Sun, 11 Jun 2023 14:00:22 +0000 (10:00 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Sun, 11 Jun 2023 14:00:22 +0000 (10:00 -0400)
commitf20f45fae24a4818dc8be5d31a46695b9d16c897
treecaa12a8689fded12c2770aaf6e113965c926012f
parent1527d63085d13fd614ef8890206dfceb2d22cc12
Add `_WILDCARD_TOKEN` special case in `_chop_path`

### Description
<!-- Describe your changes in detail -->

Add special case to `_chop_path` for initial `_WILDCARD_TOKEN` matching `_DEFAULT_TOKEN` to allow for a top level `undefer_group` load option with other load options. Fixes #9870.

### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

This pull request is:

- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [x] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**

Closes: #9931
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9931
Pull-request-sha: c073f0904f12909ff660beef6576f6476a725592

Change-Id: Ic1158b3b0306e9a1bba86ab0b9f07700a6352398
doc/build/changelog/unreleased_20/9870.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_deferred.py