-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23011] YSQL: Enable ALTER TABLE IF EXISTS t RENAME c1 TO c2
Summary: Enabled YSQL `ALTER TABLE IF EXISTS ... RENAME ... TO ...` syntax. In fact the needed internal functionality was already implemented in the functions: `renameatt` and `YBCRename`, but the command was disabled at the grammar level. The diff also adds several test-cases for the syntax: * `ALTER TABLE IF EXISTS ...` (new enabled functionality) * `ALTER TABLE ... RENAME COLUMN ...` * Plus minor changes for `ALTER TABLE ... RENAME ...` Jira: DB-11940 Test Plan: ./yb_build.sh --java-test org.yb.pgsql.TestPgRegressFeature#testPgRegressFeature ./yb_build.sh --java-test org.yb.pgsql.TestPgRegressTable#testPgRegressTable Reviewers: mihnea, fizaa, jason Reviewed By: jason Subscribers: jason, yql Differential Revision: https://phorge.dev.yugabyte.com/D36390
- Loading branch information
1 parent
1b9be2e
commit 50422f8
Showing
5 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters