We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dolt drops the names of unique constraints and chooses its own name based on the columns.
dolt sql # Welcome to the DoltSQL shell. # Statements must be terminated with ';'. # "exit" or "quit" (or Ctrl-D) to exit. new> create table t4 (a int primary key, b int not null default 1, c int not null default 2) ; new> alter table t4 add constraint t4_bc_unique unique (b,c); new> show create table t4; +-------+------------------------------------------------------------------+ | Table | Create Table | +-------+------------------------------------------------------------------+ | t4 | CREATE TABLE `t4` ( | | | `a` int NOT NULL, | | | `b` int NOT NULL DEFAULT (1), | | | `c` int NOT NULL DEFAULT (2), | | | PRIMARY KEY (`a`), | | | UNIQUE KEY `bc` (`b`,`c`) | | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin | +-------+------------------------------------------------------------------+ 1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered:
fix for this is merged, and will make it to dolt main eventually
Sorry, something went wrong.
No branches or pull requests
Dolt drops the names of unique constraints and chooses its own name based on the columns.
The text was updated successfully, but these errors were encountered: