mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
tests for bug fix
This commit is contained in:
@@ -25,6 +25,12 @@ alter table t1 add c int not null, add key (c,a);
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (a int not null,b int not null, primary key (a)) type=heap comment="testing heaps";
|
create table t1 (a int not null,b int not null, primary key (a)) type=heap comment="testing heaps";
|
||||||
insert into t1 values(1,1),(2,2),(3,3),(4,4);
|
insert into t1 values(1,1),(2,2),(3,3),(4,4);
|
||||||
|
delete from t1 where a > 0;
|
||||||
|
select * from t1;
|
||||||
|
a b
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a int not null,b int not null, primary key (a)) type=heap comment="testing heaps";
|
||||||
|
insert into t1 values(1,1),(2,2),(3,3),(4,4);
|
||||||
alter table t1 modify a int not null auto_increment, type=myisam, comment="new myisam table";
|
alter table t1 modify a int not null auto_increment, type=myisam, comment="new myisam table";
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b
|
a b
|
||||||
|
@@ -17,6 +17,12 @@ select * from t1;
|
|||||||
alter table t1 add c int not null, add key (c,a);
|
alter table t1 add c int not null, add key (c,a);
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
create table t1 (a int not null,b int not null, primary key (a)) type=heap comment="testing heaps";
|
||||||
|
insert into t1 values(1,1),(2,2),(3,3),(4,4);
|
||||||
|
delete from t1 where a > 0;
|
||||||
|
select * from t1;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
create table t1 (a int not null,b int not null, primary key (a)) type=heap comment="testing heaps";
|
create table t1 (a int not null,b int not null, primary key (a)) type=heap comment="testing heaps";
|
||||||
insert into t1 values(1,1),(2,2),(3,3),(4,4);
|
insert into t1 values(1,1),(2,2),(3,3),(4,4);
|
||||||
alter table t1 modify a int not null auto_increment, type=myisam, comment="new myisam table";
|
alter table t1 modify a int not null auto_increment, type=myisam, comment="new myisam table";
|
||||||
|
Reference in New Issue
Block a user