-
Notifications
You must be signed in to change notification settings - Fork 114
Remove custom 'createOrAlter' field in ViewStmt and grammar #3977
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
base: BABEL_5_X_DEV
Are you sure you want to change the base?
Remove custom 'createOrAlter' field in ViewStmt and grammar #3977
Conversation
Pull Request Test Coverage Report for Build 16763699635Details
💛 - Coveralls |
contrib/babelfishpg_tsql/src/hooks.c
Outdated
| if (stmt != NULL) | ||
| { | ||
| foreach(option, stmt->options) | ||
| { | ||
| DefElem *def = (DefElem *) lfirst(option); | ||
|
|
||
| if (strcmp(def->defname, "tsql_alter_view_op") == 0) | ||
| { | ||
| tsql_alter_view_op = true; | ||
| break; | ||
| } | ||
| } | ||
| } |
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.
Can we instead convert ViewStmt *stmt in function signature to a boolean is_alter_view
Also is Relation depRel being used by anyone ?
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.
Thanks for the observation. depRel isn't used anywhere, I might have missed to remove it. Also changed the argument to bool instead of Viewstmt
15e8664 to
5c67475
Compare
use Viewstmt->options Signed-off-by: Rahul Parande <[email protected]>
function Signed-off-by: Rahul Parande <[email protected]>
Signed-off-by: Rahul Parande <[email protected]>
boolean instead of ViewStmt Signed-off-by: Rahul Parande <[email protected]>
Signed-off-by: Rahul Parande <[email protected]>
db94c45 to
2560e0c
Compare
This PR modifies how we identify T-SQL
ALTER VIEWandCREATE OR ALTER VIEWoperations. Instead of using a custom field added to the PostgreSQL ViewStmt structure, we now use the standard options list mechanism insteadThis PR includes following changes:
Engine PR - babelfish-for-postgresql/postgresql_modified_for_babelfish#607
Issues Resolved
BABEL-5939
Signed off by: Rahul Parande [email protected]
Test Scenarios Covered
Use case based -
Boundary conditions -
Arbitrary inputs -
Negative test cases -
Minor version upgrade tests -
Major version upgrade tests -
Performance tests -
Tooling impact -
Client tests -
Check List
By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.