Skip to content

Conversation

@LongQIByte
Copy link
Contributor

@LongQIByte LongQIByte commented Aug 11, 2024

q = session.query(Order).join("order_items", "item")

modify to:

q = session.query(Order).join(OrderItem).join(Item)

Description

Fixes: #11720

Checklist

This pull request is:

  • A documentation / typographical / small typing error fix
    • Good to go, no issue or tests are needed
  • 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!

@CaselIT
Copy link
Member

CaselIT commented Aug 11, 2024

Hi,

This is already updated in thia other pr that's a general improvement of many examples #11437

@zzzeek do you prefer merging this small one first?

@zzzeek
Copy link
Member

zzzeek commented Aug 11, 2024

Hi,

This is already updated in thia other pr that's a general improvement of many examples #11437

@zzzeek do you prefer merging this small one first?

#11437 just goes too far to review all at once with things I dont even know what they are (what's a "fabfile"?) so it's unmergeable, I really wish it could be broken up into small changes

given that sentiment lets merge this one and backport to 2.0

@CaselIT CaselIT merged commit e8dfefb into sqlalchemy:main Sep 4, 2024
sqlalchemy-bot pushed a commit that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The runtime issue related to the join operation in the association example

3 participants