-
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
[V4.25.0] CreateViewGenerator issue #5353
Comments
@adamjones0101 - thank you for this issue. Since you already identified the code that would need to change, would you be willing to submit the change as a PR? |
I could. I had to make a little more change to CreateViewGenerator.java to get it to work right. However, I have not been able to fully test our changesets because of #5359 which is a serious regression. Therefore I hesitate to submit the PR at this time. |
I do not have a Git environment from which I can create a PR, I only download the zip, build it and use it within our product. |
Hi @adamjones0101, I think this issue could have already been fixed by #5304. Would you mind trying on the latest liquibase version? Thanks, |
It's not a high priority because we are still blocked by Issue 5359. In fact we are considering using Version 4.15.0 with the hope that the issue had not yet been introduced. |
If it becomes something required to fix, could you please expand a little bit more on the steps performed to reproduce this issue? Which command were you trying to execute when you faced this issue, changelog example, etc? If you were trying to execute a Thanks, |
Search first
Description
CreateViewGenerator.generateSql is not creating the correct SQL when isFullDefinition is false and replaceIfExists is true.
Code should read something like this around line 81:
.prepend("VIEW")
.prepend(" ");
if (statement.isReplaceIfExists()) {
viewDefinition.prepend("CREATE OR REPLACE");
}
else {
viewDefinition.prepend("CREATE");
}
Steps To Reproduce
use fullDefinition false and replaceIfExists true on a view that exists
Expected/Desired Behavior
SQL should be CREATE OR REPLACE
Liquibase Version
4.25.0
Database Vendor & Version
Oracle 19.3
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
Oracle 19.3
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: