-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
…W, despite what the source code says!
There was a problem hiding this 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.
Impact
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, withfullDefinition=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