-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
57146: sql: use constraint name when adding a primary key constraint r=rafiss a=neeral fixes #52833 Previously, when a table is created without a primary key and one is later added by a named constraint, the specified name was ignored. The primary key constraint always had the name "primary". This was inadequate because the specified name was ignored. It causes some trouble for schema migration tools. To address this, this patch names the primary key as specified in the `ALTER TABLE <t> ADD CONSTAINT <name> PRIMARY KEY` statement. Release (sql change, bug fix): Adding a primary key constraint to a table without a primary key no longer ignores the name specified for the primary key. Co-authored-by: neeral <8496732+neeral@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
448 additions
and
382 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
Large diffs are not rendered by default.
Oops, something went wrong.
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