diff options
author | unknown <ram@mysql.r18.ru> | 2002-10-07 17:49:03 +0500 |
---|---|---|
committer | unknown <ram@mysql.r18.ru> | 2002-10-07 17:49:03 +0500 |
commit | 9195963f56122b3ca7fa480607b8da9ae969a364 (patch) | |
tree | ebf4b60cc6d75288281e8c8da41994ba6bc7d89f /mysql-test | |
parent | 9e5a4be4605cf71c5e3d6c07283c95fc4f29db70 (diff) | |
download | mariadb-git-9195963f56122b3ca7fa480607b8da9ae969a364.tar.gz |
auto_increment for heap tables
test case
heap/hp_create.c:
auto_increment for heap tables
heap/hp_hash.c:
auto_increment for heap tables
heap/hp_info.c:
auto_increment for heap tables
heap/hp_test1.c:
auto_increment for heap tables
heap/hp_test2.c:
auto_increment for heap tables
heap/hp_update.c:
auto_increment for heap tables
heap/hp_write.c:
auto_increment for heap tables
include/heap.h:
auto_increment for heap tables
mysql-test/r/create.result:
auto_increment for heap tables
mysql-test/t/create.test:
auto_increment for heap tables
sql/ha_heap.cc:
auto_increment for heap tables
sql/ha_heap.h:
auto_increment for heap tables
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/create.result | 3 | ||||
-rw-r--r-- | mysql-test/t/create.test | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index 9b56b2b5160..6eaef1f5d24 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -22,14 +22,13 @@ drop table if exists t1,t2; create table t1 (b char(0) not null, index(b)); The used table handler can't index column 'b' create table t1 (a int not null auto_increment,primary key (a)) type=heap; -The used table type doesn't support AUTO_INCREMENT columns create table t1 (a int not null,b text) type=heap; The used table type doesn't support BLOB/TEXT columns create table t1 (a int ,primary key(a)) type=heap; All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead drop table if exists t1; create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=heap; -The used table type doesn't support AUTO_INCREMENT columns +Incorrect table definition; There can only be one auto column and it must be defined as a key create table t1 (ordid int(8), primary key (ordid)); All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead create table not_existing_database.test (a int); diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index 47ee55620e4..65be9683061 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -22,12 +22,12 @@ drop table if exists t1; !$1146 create table t2 select auto+1 from t1; drop table if exists t1,t2; !$1167 create table t1 (b char(0) not null, index(b)); -!$1164 create table t1 (a int not null auto_increment,primary key (a)) type=heap; +create table t1 (a int not null auto_increment,primary key (a)) type=heap; !$1163 create table t1 (a int not null,b text) type=heap; !$1171 create table t1 (a int ,primary key(a)) type=heap; drop table if exists t1; -!$1164 create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=heap; +!$1075 create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=heap; !$1171 create table t1 (ordid int(8), primary key (ordid)); -- error 1044,1 |