-
-
Notifications
You must be signed in to change notification settings - Fork 234
allow renaming views with RENAME TABLE
statement
#1712
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
Conversation
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.
Code looks correct, just a few minor comments that I think will make it easier to read and maintain.
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.
Looks good! 🚢
The change to |
…31f9792ac8ce3eb52f6f9ccf Revert "allow renaming views with `RENAME TABLE` statement (#1712)"
RENAME TABLE ... TO ...
statementViewDatabase
implementation forPrivilegedDatabase
TODO:
ALTER TABLE ... RENAME ...
should fail for renaming of views. Currently,vitess
parses both the statements into the same node, which makesGMS
parser not be able to detect the difference.Should return error:
ERROR 1347 (HY000): 'mydb.myview' is not BASE TABLE