ddl: allow defining auto_random on composite primary key #38572
Labels
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
sig/sql-infra
SIG: SQL Infra
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
For now, TiDB doesn't allow defining AUTO_RANDOM attribute on composite primary keys, even when the key is the clustered index:
Sometimes defining a primary key is useful, for example, to match the requirement of partition keys, so we could relax this restriction.
The text was updated successfully, but these errors were encountered: