Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test eager loading belongs to nested with same foreign key #538

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

test eager loading belongs to nested with same foreign key #538

wants to merge 1 commit into from

Conversation

jihunleekr
Copy link
Contributor

This is belongs to #537

@jihunleekr
Copy link
Contributor Author

This PR's test must fail

@visavi
Copy link

visavi commented May 19, 2016

SELECT * FROM awesome_people **WHERE author_id=?' contains "**WHERE author_id IN(?,?)

@jihunleekr
Copy link
Contributor Author

SHOW COLUMNS FROM `books`
SELECT * FROM `books` WHERE `book_id` IN('2','3')
SHOW COLUMNS FROM `authors`
SHOW COLUMNS FROM `authors`
SELECT * FROM `authors` WHERE `author_id` IN('2','2')
SHOW COLUMNS FROM `awesome_people`
SELECT * FROM `awesome_people` WHERE `author_id` IN('2')
SELECT * FROM `awesome_people` WHERE `author_id`='2'

above is a query log of running added test.

the last query is unnecessary.

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.

2 participants