Skip to content

fix(query-generator): 1-to-many join in subQuery filter missing where clause - #9247

Merged
sushantdhiman merged 1 commit into
sequelize:masterfrom
jharting:fix-9228
Mar 29, 2018
Merged

sushantdhiman merged 1 commit into
sequelize:masterfrom
jharting:fix-9228

Conversation

@jharting

Copy link
Copy Markdown
Contributor

Closes #9228

Pull Request check-list

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description of change

Fixes regression introduced in #9188
The problem is that certain subquery filter joins are missing the where clause. While this was implemented correctly for many-to-many joins (here and here )I missed the other cases (here)

@codecov

codecov Bot commented Mar 28, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #9247 into master will not change coverage.
The diff coverage is n/a.

@jorrit

jorrit commented Mar 28, 2018

Copy link
Copy Markdown
Contributor

I have tested it by manually adding topInclude.where, to query-generator on v4.37.4. Now the query works.

@sushantdhiman
sushantdhiman merged commit 71215ce into sequelize:master Mar 29, 2018
@sushantdhiman

Copy link
Copy Markdown
Contributor

v4.37.5

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.

3 participants