Skip to content

DRAFT | MDEV-35026 - DROP CONSTRAINT for self referencing FK fails without error, but modifies another UNIQUE KEY definied with USING HASH#5380

Draft
pranavktiwari wants to merge 2 commits into
10.11from
10.11-MDEV-35026
Draft

DRAFT | MDEV-35026 - DROP CONSTRAINT for self referencing FK fails without error, but modifies another UNIQUE KEY definied with USING HASH#5380
pranavktiwari wants to merge 2 commits into
10.11from
10.11-MDEV-35026

Conversation

@pranavktiwari

Copy link
Copy Markdown
Contributor

No description provided.

@pranavktiwari pranavktiwari changed the title DRAFT | DROP CONSTRAINT for self referencing FK fails without error, but modifies another UNIQUE KEY definied with USING HASH DRAFT | MDEV-35026 - DROP CONSTRAINT for self referencing FK fails without error, but modifies another UNIQUE KEY definied with USING HASH Jul 13, 2026
@pranavktiwari pranavktiwari marked this pull request as draft July 13, 2026 08:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies sql/sql_table.cc to adjust how the key algorithm is determined during an alter table preparation. Specifically, when the key algorithm is HA_KEY_ALG_LONG_HASH, it is now set to HA_KEY_ALG_HASH if either fast_alter_partition is active or if the ALTER_CHANGE_COLUMN flag is not set. There are no review comments, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants