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

fix(syntax): correct parentheses around union (#9813) #10003

Merged
merged 1 commit into from Oct 15, 2018

Conversation

tsasaki609
Copy link
Contributor

Pull Request check-list

Please make sure to review and check all of these items:

  • 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

fix #9813

I wrapped a subquery to union.
Although it is a little tricky, no error occurs with this.

@codecov
Copy link

codecov bot commented Oct 7, 2018

Codecov Report

Merging #10003 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #10003   +/-   ##
=======================================
  Coverage   96.38%   96.38%           
=======================================
  Files          63       63           
  Lines        9382     9382           
=======================================
  Hits         9043     9043           
  Misses        339      339
Impacted Files Coverage Δ
lib/dialects/abstract/query-generator.js 97.65% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fcd07ef...a6c1f01. Read the comment docs.

@tsasaki609
Copy link
Contributor Author

How is it like this?

@tsasaki609 tsasaki609 force-pushed the fix-union-syntax branch 4 times, most recently from a79b386 to 9e456d7 Compare October 13, 2018 01:22
@sushantdhiman sushantdhiman merged commit 55e5734 into sequelize:master Oct 15, 2018
@sushantdhiman
Copy link
Contributor

Thanks @tsasaki609

Not sure when you last pushed the change, I didn't get any notification for last commit

@internalfx
Copy link

Is this in the latest release yet? I'm still seeing this bug.

@sushantdhiman
Copy link
Contributor

@internalfx 5.0.0-beta.13

@internalfx
Copy link

Any chance for a 4.x branch release?

@sushantdhiman
Copy link
Contributor

@internalfx cherry pick this commit and send a PR targeting v4 branch

@tzellman
Copy link

tzellman commented Nov 4, 2018

Thanks @sushantdhiman! PR #10121 targets the v4 branch.

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.

Sqlite syntax error
4 participants