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

Fixed: Issue #4620 - "SQL Anywhere DOES support CREATE OR REPLACE VIEW, despite what the source code says!" #4621

Merged
merged 5 commits into from
Sep 19, 2023

Conversation

mkarg
Copy link
Contributor

@mkarg mkarg commented Aug 8, 2023

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Fixes #4620

As SQL Anywhere supports OR REPLACE since more than a decade, we can safely remove all the special treatment for replaceIfExists=true in the source code. I used it for several hours with that change and it just works fine out-of-the-box in all cases, with fullDefinition=true/false, etc. Apparently this code was just a leftover from the very ancient days and is not needed since at least 10 years.

https://help.sap.com/docs/SAP_SQL_Anywhere/93079d4ba8e44920ae63ffb4def91f5b/816d37a36ce21014bf6cacd0588a42f3.html

Things to be aware of

Very, very, very outdated versions of SQL Anywhere actually did not support OR REPLACE.

Things to worry about

Do not use SQL Anywhere unsupported releases, i. e. v17.x, available since approx. a decade.

Additional Context

N/A

@MalloD12 MalloD12 added the SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions label Aug 15, 2023
@MalloD12 MalloD12 added SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions and removed SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions labels Aug 15, 2023
@MalloD12 MalloD12 added the SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions label Aug 15, 2023
Copy link
Contributor

@MalloD12 MalloD12 left a comment

Choose a reason for hiding this comment

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

This looks good to me. Made a minor update on one of the test assertions related to this change.

There are still some build errors (not related with this PR) and functional and test harness test suites cannot be executed, but I double checked on both DB supported matrix and there is not SQL Anywhere execution we need to worry about.

@filipelautert filipelautert merged commit 87723af into liquibase:master Sep 19, 2023
35 of 39 checks passed
@filipelautert filipelautert added this to the 1NEXT milestone Sep 19, 2023
@mkarg mkarg deleted the issue-4620 branch September 25, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocandidate DBSQLAnywhere SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions TypeBug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

SQL Anywhere DOES support CREATE OR REPLACE VIEW, despite what the source code says!
6 participants