summaryrefslogtreecommitdiff
path: root/mysql-test/r/key.result
diff options
context:
space:
mode:
authorbar@mysql.com <>2006-06-23 13:19:30 +0500
committerbar@mysql.com <>2006-06-23 13:19:30 +0500
commitcfb08851f71624cdd08bdff3bab4466fb2ad8b0b (patch)
treef4760a60110ab0b2fc303ee03d4218f5f4974dab /mysql-test/r/key.result
parentef2860e8ff7b09c21cd9c5c84c1cbe96aaf317c9 (diff)
downloadmariadb-git-cfb08851f71624cdd08bdff3bab4466fb2ad8b0b.tar.gz
Bug#11228: DESC shows arbitrary column as "PRI"
An UNIQUE KEY consisting of NOT NULL columns was displayed as PRIMARY KEY in "DESC t1". According to the code, that was intentional behaviour for some reasons unknown to me. This code was written before bitkeeper time, so I cannot check who and why made this. After discussing on dev-public, a decision was made to remove this code
Diffstat (limited to 'mysql-test/r/key.result')
-rw-r--r--mysql-test/r/key.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/key.result b/mysql-test/r/key.result
index f0a7afa239f..0bc241c0d19 100644
--- a/mysql-test/r/key.result
+++ b/mysql-test/r/key.result
@@ -326,6 +326,16 @@ alter table t1 add key (c1,c1,c2);
ERROR 42S21: Duplicate column name 'c1'
drop table t1;
create table t1 (
+i1 INT NOT NULL,
+i2 INT NOT NULL,
+UNIQUE i1idx (i1),
+UNIQUE i2idx (i2));
+desc t1;
+Field Type Null Key Default Extra
+i1 int(11) UNI 0
+i2 int(11) UNI 0
+drop table t1;
+create table t1 (
c1 int,
c2 varchar(20) not null,
primary key (c1),