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: sequelize mode support HAVING, and select fields raw sql support #187

Merged
merged 4 commits into from
Sep 28, 2021

Conversation

JimmyDaddy
Copy link
Collaborator

No description provided.

src/spell.js Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2021

Codecov Report

Merging #187 (c191bd5) into master (5d06e6e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #187   +/-   ##
=======================================
  Coverage   96.79%   96.80%           
=======================================
  Files          39       39           
  Lines        2963     2969    +6     
=======================================
+ Hits         2868     2874    +6     
  Misses         95       95           
Impacted Files Coverage Δ
src/adapters/sequelize.js 94.59% <100.00%> (+0.05%) ⬆️
src/spell.js 94.86% <100.00%> (+0.04%) ⬆️

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 5d06e6e...c191bd5. Read the comment docs.

src/spell.js Outdated Show resolved Hide resolved
const condition = parseObjectValue(value);
normalizeLogicalCondition(condition, name);
result.push(condition);
const conds = parseObjectValue(value);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can use parseOperatorCondition(name, value) here

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried a bit, with no luck. I'd need more time to investigate on this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseOperatorCondition seems can't parse logical operator and return object not object array

@JimmyDaddy JimmyDaddy force-pushed the fix/selected_fields_support_raw_sql branch from a081356 to c191bd5 Compare September 27, 2021 09:58
@cyjake cyjake merged commit b941e65 into master Sep 28, 2021
@cyjake cyjake deleted the fix/selected_fields_support_raw_sql branch September 28, 2021 09:08
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