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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8df787d3
Commit
8df787d3
authored
Feb 15, 2018
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow-up for
54db0be3
(Added Max_index_length and Temporary)
parent
4074c745
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
61 additions
and
55 deletions
+61
-55
mysql-test/suite/storage_engine/autoincrement.result
mysql-test/suite/storage_engine/autoincrement.result
+10
-10
mysql-test/suite/storage_engine/autoincrement.test
mysql-test/suite/storage_engine/autoincrement.test
+5
-5
mysql-test/suite/storage_engine/show_table_status.result
mysql-test/suite/storage_engine/show_table_status.result
+6
-0
mysql-test/suite/storage_engine/show_table_status.test
mysql-test/suite/storage_engine/show_table_status.test
+1
-1
mysql-test/suite/storage_engine/truncate_table.result
mysql-test/suite/storage_engine/truncate_table.result
+8
-8
mysql-test/suite/storage_engine/truncate_table.test
mysql-test/suite/storage_engine/truncate_table.test
+4
-4
storage/myisammrg/mysql-test/storage_engine/autoincrement.rdiff
...e/myisammrg/mysql-test/storage_engine/autoincrement.rdiff
+15
-15
storage/myisammrg/mysql-test/storage_engine/truncate_table.rdiff
.../myisammrg/mysql-test/storage_engine/truncate_table.rdiff
+12
-12
No files found.
mysql-test/suite/storage_engine/autoincrement.result
View file @
8df787d3
...
@@ -51,15 +51,15 @@ LAST_INSERT_ID()
...
@@ -51,15 +51,15 @@ LAST_INSERT_ID()
5
5
SET sql_mode = '<INITIAL_SQL_MODE>';
SET sql_mode = '<INITIAL_SQL_MODE>';
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 <STORAGE_ENGINE> # # # # # # # # 6 # # # # # # #
t1 <STORAGE_ENGINE> # # # # # # # # 6 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (6,'g'),(7,'h');
INSERT INTO t1 (a,b) VALUES (6,'g'),(7,'h');
SELECT LAST_INSERT_ID();
SELECT LAST_INSERT_ID();
LAST_INSERT_ID()
LAST_INSERT_ID()
5
5
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 8 # # # # # # #
t1 # # # # # # # # # 8 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (NULL,'i'),(9,'j');
INSERT INTO t1 (a,b) VALUES (NULL,'i'),(9,'j');
SELECT a,b FROM t1 ORDER BY a;
SELECT a,b FROM t1 ORDER BY a;
a b
a b
...
@@ -77,12 +77,12 @@ SELECT LAST_INSERT_ID();
...
@@ -77,12 +77,12 @@ SELECT LAST_INSERT_ID();
LAST_INSERT_ID()
LAST_INSERT_ID()
8
8
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 10 # # # # # # #
t1 # # # # # # # # # 10 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (20,'k');
INSERT INTO t1 (a,b) VALUES (20,'k');
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 21 # # # # # # #
t1 # # # # # # # # # 21 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (NULL,'l');
INSERT INTO t1 (a,b) VALUES (NULL,'l');
SELECT a,b FROM t1 ORDER BY a;
SELECT a,b FROM t1 ORDER BY a;
a b
a b
...
@@ -102,8 +102,8 @@ SELECT LAST_INSERT_ID();
...
@@ -102,8 +102,8 @@ SELECT LAST_INSERT_ID();
LAST_INSERT_ID()
LAST_INSERT_ID()
21
21
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 22 # # # # # # #
t1 # # # # # # # # # 22 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (-5,'m');
INSERT INTO t1 (a,b) VALUES (-5,'m');
SELECT a,b FROM t1 ORDER BY a;
SELECT a,b FROM t1 ORDER BY a;
a b
a b
...
...
mysql-test/suite/storage_engine/autoincrement.test
View file @
8df787d3
...
@@ -50,7 +50,7 @@ if (!$mysql_errname)
...
@@ -50,7 +50,7 @@ if (!$mysql_errname)
# SHOW TABLE STATUS shows the auto-increment value in column 11,
# SHOW TABLE STATUS shows the auto-increment value in column 11,
# that's all we need here and further
# that's all we need here and further
--
source
mask_engine
.
inc
--
source
mask_engine
.
inc
--
replace_column
3
# 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
3
# 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
# Mix of automatic and explicit values
# Mix of automatic and explicit values
...
@@ -58,7 +58,7 @@ if (!$mysql_errname)
...
@@ -58,7 +58,7 @@ if (!$mysql_errname)
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
6
,
'g'
),(
7
,
'h'
);
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
6
,
'g'
),(
7
,
'h'
);
SELECT
LAST_INSERT_ID
();
SELECT
LAST_INSERT_ID
();
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
...
@@ -66,21 +66,21 @@ if (!$mysql_errname)
...
@@ -66,21 +66,21 @@ if (!$mysql_errname)
SELECT
a
,
b
FROM
t1
ORDER
BY
a
;
SELECT
a
,
b
FROM
t1
ORDER
BY
a
;
SELECT
LAST_INSERT_ID
();
SELECT
LAST_INSERT_ID
();
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
# Creating a gap in the sequence
# Creating a gap in the sequence
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
20
,
'k'
);
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
20
,
'k'
);
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
NULL
,
'l'
);
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
NULL
,
'l'
);
SELECT
a
,
b
FROM
t1
ORDER
BY
a
;
SELECT
a
,
b
FROM
t1
ORDER
BY
a
;
SELECT
LAST_INSERT_ID
();
SELECT
LAST_INSERT_ID
();
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
SHOW
TABLE
STATUS
FROM
test
LIKE
't1'
;
# Negative values: we will try to insert one just to check that it does not cause a crash,
# Negative values: we will try to insert one just to check that it does not cause a crash,
...
...
mysql-test/suite/storage_engine/show_table_status.result
View file @
8df787d3
...
@@ -23,6 +23,8 @@ Collation latin1_swedish_ci
...
@@ -23,6 +23,8 @@ Collation latin1_swedish_ci
Checksum NULL
Checksum NULL
Create_options
Create_options
Comment
Comment
Max_index_length ###
Temporary N
Name t2
Name t2
Engine <STORAGE_ENGINE>
Engine <STORAGE_ENGINE>
Version 10
Version 10
...
@@ -41,6 +43,8 @@ Collation latin1_swedish_ci
...
@@ -41,6 +43,8 @@ Collation latin1_swedish_ci
Checksum NULL
Checksum NULL
Create_options
Create_options
Comment
Comment
Max_index_length ###
Temporary N
Name t3
Name t3
Engine <STORAGE_ENGINE>
Engine <STORAGE_ENGINE>
Version 10
Version 10
...
@@ -59,4 +63,6 @@ Collation utf8_general_ci
...
@@ -59,4 +63,6 @@ Collation utf8_general_ci
Checksum NULL
Checksum NULL
Create_options
Create_options
Comment
Comment
Max_index_length ###
Temporary N
DROP TABLE t1, t2, t3;
DROP TABLE t1, t2, t3;
mysql-test/suite/storage_engine/show_table_status.test
View file @
8df787d3
...
@@ -22,7 +22,7 @@ INSERT INTO t2 (a,b) VALUES (1,'bar');
...
@@ -22,7 +22,7 @@ INSERT INTO t2 (a,b) VALUES (1,'bar');
--
let
$table_options
=
CHARACTER
SET
utf8
--
let
$table_options
=
CHARACTER
SET
utf8
--
source
create_table
.
inc
--
source
create_table
.
inc
--
replace_column
2
<
STORAGE_ENGINE
>
4
### 6 ### 7 ### 8 ### 9 ### 10 ### 12 ### 13 ###
--
replace_column
2
<
STORAGE_ENGINE
>
4
### 6 ### 7 ### 8 ### 9 ### 10 ### 12 ### 13 ###
19 ###
--
query_vertical
SHOW
TABLE
STATUS
WHERE
name
IN
(
't1'
,
't2'
,
't3'
)
--
query_vertical
SHOW
TABLE
STATUS
WHERE
name
IN
(
't1'
,
't2'
,
't3'
)
DROP
TABLE
t1
,
t2
,
t3
;
DROP
TABLE
t1
,
t2
,
t3
;
...
...
mysql-test/suite/storage_engine/truncate_table.result
View file @
8df787d3
...
@@ -8,20 +8,20 @@ a b
...
@@ -8,20 +8,20 @@ a b
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (a <INT_COLUMN> KEY AUTO_INCREMENT, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
CREATE TABLE t1 (a <INT_COLUMN> KEY AUTO_INCREMENT, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 1 # # # # # # #
t1 # # # # # # # # # 1 # # # # # # #
# N
INSERT INTO t1 (c) VALUES ('a'),('b'),('c');
INSERT INTO t1 (c) VALUES ('a'),('b'),('c');
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 4 # # # # # # #
t1 # # # # # # # # # 4 # # # # # # #
# N
TRUNCATE TABLE t1;
TRUNCATE TABLE t1;
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 1 # # # # # # #
t1 # # # # # # # # # 1 # # # # # # #
# N
INSERT INTO t1 (c) VALUES ('d');
INSERT INTO t1 (c) VALUES ('d');
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
t1 # # # # # # # # # 2 # # # # # # #
t1 # # # # # # # # # 2 # # # # # # #
# N
SELECT a,c FROM t1;
SELECT a,c FROM t1;
a c
a c
1 d
1 d
...
...
mysql-test/suite/storage_engine/truncate_table.test
View file @
8df787d3
...
@@ -36,19 +36,19 @@ if ($mysql_errname)
...
@@ -36,19 +36,19 @@ if ($mysql_errname)
}
}
if
(
!
$mysql_errname
)
if
(
!
$mysql_errname
)
{
{
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
LIKE
't1'
;
SHOW
TABLE
STATUS
LIKE
't1'
;
INSERT
INTO
t1
(
c
)
VALUES
(
'a'
),(
'b'
),(
'c'
);
INSERT
INTO
t1
(
c
)
VALUES
(
'a'
),(
'b'
),(
'c'
);
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
LIKE
't1'
;
SHOW
TABLE
STATUS
LIKE
't1'
;
TRUNCATE
TABLE
t1
;
TRUNCATE
TABLE
t1
;
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
LIKE
't1'
;
SHOW
TABLE
STATUS
LIKE
't1'
;
INSERT
INTO
t1
(
c
)
VALUES
(
'd'
);
INSERT
INTO
t1
(
c
)
VALUES
(
'd'
);
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
--
replace_column
2
# 3 # 4 # 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 # 14 # 15 # 16 # 17 # 18 #
19 #
SHOW
TABLE
STATUS
LIKE
't1'
;
SHOW
TABLE
STATUS
LIKE
't1'
;
SELECT
a
,
c
FROM
t1
;
SELECT
a
,
c
FROM
t1
;
...
...
storage/myisammrg/mysql-test/storage_engine/autoincrement.rdiff
View file @
8df787d3
...
@@ -12,40 +12,40 @@
...
@@ -12,40 +12,40 @@
@@ -52,14 +52,14 @@
@@ -52,14 +52,14 @@
SET sql_mode = '<INITIAL_SQL_MODE>';
SET sql_mode = '<INITIAL_SQL_MODE>';
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 <STORAGE_ENGINE> # # # # # # # # 6 # # # # # # #
-t1 <STORAGE_ENGINE> # # # # # # # # 6 # # # # # # #
# N
+t1 <STORAGE_ENGINE> # # # # # # # # 0 # # # # # # #
+t1 <STORAGE_ENGINE> # # # # # # # # 0 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (6,'g'),(7,'h');
INSERT INTO t1 (a,b) VALUES (6,'g'),(7,'h');
SELECT LAST_INSERT_ID();
SELECT LAST_INSERT_ID();
LAST_INSERT_ID()
LAST_INSERT_ID()
5
5
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 8 # # # # # # #
-t1 # # # # # # # # # 8 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (NULL,'i'),(9,'j');
INSERT INTO t1 (a,b) VALUES (NULL,'i'),(9,'j');
SELECT a,b FROM t1 ORDER BY a;
SELECT a,b FROM t1 ORDER BY a;
a b
a b
@@ -78,11 +78,11 @@
@@ -78,11 +78,11 @@
8
8
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 10 # # # # # # #
-t1 # # # # # # # # # 10 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (20,'k');
INSERT INTO t1 (a,b) VALUES (20,'k');
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 21 # # # # # # #
-t1 # # # # # # # # # 21 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (NULL,'l');
INSERT INTO t1 (a,b) VALUES (NULL,'l');
SELECT a,b FROM t1 ORDER BY a;
SELECT a,b FROM t1 ORDER BY a;
a b
a b
@@ -103,7 +103,7 @@
@@ -103,7 +103,7 @@
21
21
SHOW TABLE STATUS FROM test LIKE 't1';
SHOW TABLE STATUS FROM test LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 22 # # # # # # #
-t1 # # # # # # # # # 22 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
INSERT INTO t1 (a,b) VALUES (-5,'m');
INSERT INTO t1 (a,b) VALUES (-5,'m');
SELECT a,b FROM t1 ORDER BY a;
SELECT a,b FROM t1 ORDER BY a;
a b
a b
...
...
storage/myisammrg/mysql-test/storage_engine/truncate_table.rdiff
View file @
8df787d3
...
@@ -3,24 +3,24 @@
...
@@ -3,24 +3,24 @@
@@ -9,19 +9,19 @@
@@ -9,19 +9,19 @@
CREATE TABLE t1 (a <INT_COLUMN> KEY AUTO_INCREMENT, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
CREATE TABLE t1 (a <INT_COLUMN> KEY AUTO_INCREMENT, c <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 1 # # # # # # #
-t1 # # # # # # # # # 1 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
INSERT INTO t1 (c) VALUES ('a'),('b'),('c');
INSERT INTO t1 (c) VALUES ('a'),('b'),('c');
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 4 # # # # # # #
-t1 # # # # # # # # # 4 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
TRUNCATE TABLE t1;
TRUNCATE TABLE t1;
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 1 # # # # # # #
-t1 # # # # # # # # # 1 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
INSERT INTO t1 (c) VALUES ('d');
INSERT INTO t1 (c) VALUES ('d');
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Max_index_length Temporary
-t1 # # # # # # # # # 2 # # # # # # #
-t1 # # # # # # # # # 2 # # # # # # #
# N
+t1 # # # # # # # # # 0 # # # # # # #
+t1 # # # # # # # # # 0 # # # # # # #
# N
SELECT a,c FROM t1;
SELECT a,c FROM t1;
a c
a c
1 d
1 d
...
...
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