Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c65ac4e7
Commit
c65ac4e7
authored
Mar 07, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests for bug fix
parent
c0ea76f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
mysql-test/r/heap.result
mysql-test/r/heap.result
+6
-0
mysql-test/t/heap.test
mysql-test/t/heap.test
+6
-0
No files found.
mysql-test/r/heap.result
View file @
c65ac4e7
...
@@ -25,6 +25,12 @@ alter table t1 add c int not null, add key (c,a);
...
@@ -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
...
...
mysql-test/t/heap.test
View file @
c65ac4e7
...
@@ -17,6 +17,12 @@ select * from t1;
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment