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
1aa6f042
Commit
1aa6f042
authored
Aug 08, 2012
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better test case for MDEV-436
parent
f2d7609a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
3 deletions
+52
-3
mysql-test/suite/heap/heap.result
mysql-test/suite/heap/heap.result
+29
-1
mysql-test/suite/heap/heap.test
mysql-test/suite/heap/heap.test
+23
-2
No files found.
mysql-test/suite/heap/heap.result
View file @
1aa6f042
...
...
@@ -756,9 +756,37 @@ select data_length,index_length from information_schema.tables where table_schem
data_length index_length
48000 72000
drop table t1;
CREATE TABLE t1 (a int, index(a)) engine=heap max_rows=
4
000;
CREATE TABLE t1 (a int, index(a)) engine=heap max_rows=
15
000;
insert into t1 values(1);
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
24000 36000
drop table t1;
create table t1 (c1 int, index(c1)) engine=heap max_rows=10000;
insert into t1 select rand(100000000);
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1;
insert into t1 select rand(100000000) from t1 limit 488;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
16000 24000
insert into t1 select rand(100000000) from t1 limit 1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
33024 49024
insert into t1 select rand(100000000) from t1 limit 1000;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
49024 73024
insert into t1 select rand(100000000) from t1;
select data_length,index_length from information_schema.tables where table_schema="test" and table_name="t1";
data_length index_length
81024 121024
drop table t1;
mysql-test/suite/heap/heap.test
View file @
1aa6f042
...
...
@@ -489,7 +489,7 @@ DROP TABLE t1;
#
# Show that MIN_ROWS and MAX_ROWS have an effect on how data_length
# and index_length are allocated.
#
This is different for 32 and
64 bit machines as pointer lengths are different
#
Result is different for 32 /
64 bit machines as pointer lengths are different
#
CREATE
TABLE
t1
(
a
int
,
index
(
a
))
engine
=
heap
min_rows
=
10
max_rows
=
100
;
...
...
@@ -504,7 +504,28 @@ CREATE TABLE t1 (a int, index(a)) engine=heap min_rows=3000 max_rows=3000;
insert
into
t1
values
(
1
);
select
data_length
,
index_length
from
information_schema
.
tables
where
table_schema
=
"test"
and
table_name
=
"t1"
;
drop
table
t1
;
CREATE
TABLE
t1
(
a
int
,
index
(
a
))
engine
=
heap
max_rows
=
4
000
;
CREATE
TABLE
t1
(
a
int
,
index
(
a
))
engine
=
heap
max_rows
=
15
000
;
insert
into
t1
values
(
1
);
select
data_length
,
index_length
from
information_schema
.
tables
where
table_schema
=
"test"
and
table_name
=
"t1"
;
drop
table
t1
;
create
table
t1
(
c1
int
,
index
(
c1
))
engine
=
heap
max_rows
=
10000
;
insert
into
t1
select
rand
(
100000000
);
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
insert
into
t1
select
rand
(
100000000
)
from
t1
limit
488
;
select
data_length
,
index_length
from
information_schema
.
tables
where
table_schema
=
"test"
and
table_name
=
"t1"
;
insert
into
t1
select
rand
(
100000000
)
from
t1
limit
1
;
select
data_length
,
index_length
from
information_schema
.
tables
where
table_schema
=
"test"
and
table_name
=
"t1"
;
insert
into
t1
select
rand
(
100000000
)
from
t1
limit
1000
;
select
data_length
,
index_length
from
information_schema
.
tables
where
table_schema
=
"test"
and
table_name
=
"t1"
;
insert
into
t1
select
rand
(
100000000
)
from
t1
;
select
data_length
,
index_length
from
information_schema
.
tables
where
table_schema
=
"test"
and
table_name
=
"t1"
;
drop
table
t1
;
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