Skip to content

Issue 8816 found bug with Op.is. When it has a null value it checks for IS NOT. This fixes - #8835

Merged
janmeier merged 2 commits into
sequelize:masterfrom
mccabemj:master
Jan 4, 2018
Merged

janmeier merged 2 commits into
sequelize:masterfrom
mccabemj:master

Conversation

@mccabemj

@mccabemj mccabemj commented Jan 4, 2018 •

Copy link
Copy Markdown
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

Issue #8816 found bug with Op.is. When it has a null value it checks for IS NOT. This happens because the Op.ne check with null value is not comparing with the passed comparator. Adding in that comparison stops Op.ne catching other operators (such as Op.is)

Added a test which fails before and passes after for Op.is, alongside Op.eq to check they have the same output. There is no existing Op.eq test either, which catches its change to Op.is so this also adds that

@codecov

codecov Bot commented Jan 4, 2018 •

Copy link
Copy Markdown

Codecov Report

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

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