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: throw when using upsert in ibmi or snowflake #17155

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

lohart13
Copy link
Contributor

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description of Changes

This PR separates a change required for PR #16988.

The IBMi and Snowflake dialects do not have valid upsert implementations and would have resulted in database errors due to the current method using unsupported syntax.

This PR removes the unused/invalid code and throws an error is the method is used.

In a future PR, both dialects should have the merge query implemented similar to what DB2 and MS SQL have.

List of Breaking Changes

Snowflake does not support upsert queries.

@lohart13 lohart13 requested a review from a team as a code owner March 10, 2024 20:57
@lohart13 lohart13 requested review from ephys and WikiRik March 10, 2024 20:57
@ephys ephys changed the title fix: ibmi and snowflake don't have valid upsert implementations fix: throw when using upsert in ibmi or snowflake Mar 16, 2024
@ephys ephys enabled auto-merge (squash) March 19, 2024 16:40
@ephys ephys merged commit 2054802 into sequelize:main Mar 19, 2024
49 checks passed
@lohart13 lohart13 deleted the remove-unsupported-upsert branch March 19, 2024 22:13
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.

None yet

3 participants