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
36359157
Commit
36359157
authored
Nov 26, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
1afed207
971e1d86
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/suite/innodb/r/truncate.result
mysql-test/suite/innodb/r/truncate.result
+9
-0
mysql-test/suite/innodb/t/truncate.test
mysql-test/suite/innodb/t/truncate.test
+9
-0
sql/table.cc
sql/table.cc
+1
-0
No files found.
mysql-test/suite/innodb/r/truncate.result
View file @
36359157
...
...
@@ -18,3 +18,12 @@ SELECT * FROM t1;
c
character
DROP TABLE t1;
#
# MDEV-17831 TRUNCATE TABLE removes ROW_FORMAT=COMPRESSED
#
CREATE TABLE t1 (a SERIAL) ENGINE=InnoDB KEY_BLOCK_SIZE=4;
TRUNCATE TABLE t1;
SHOW TABLE STATUS;
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 InnoDB # Compressed # # # # # # 1 # # NULL latin1_swedish_ci NULL key_block_size=4 0 N
DROP TABLE t1;
mysql-test/suite/innodb/t/truncate.test
View file @
36359157
...
...
@@ -27,3 +27,12 @@ ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
TRUNCATE
TABLE
t1
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-17831 TRUNCATE TABLE removes ROW_FORMAT=COMPRESSED
--
echo
#
CREATE
TABLE
t1
(
a
SERIAL
)
ENGINE
=
InnoDB
KEY_BLOCK_SIZE
=
4
;
TRUNCATE
TABLE
t1
;
--
replace_column
3
# 5 # 6 # 7 # 8 # 9 # 10 # 12 # 13 #
SHOW
TABLE
STATUS
;
DROP
TABLE
t1
;
sql/table.cc
View file @
36359157
...
...
@@ -3928,6 +3928,7 @@ void update_create_info_from_table(HA_CREATE_INFO *create_info, TABLE *table)
create_info
->
table_options
=
share
->
db_create_options
;
create_info
->
avg_row_length
=
share
->
avg_row_length
;
create_info
->
row_type
=
share
->
row_type
;
create_info
->
key_block_size
=
share
->
key_block_size
;
create_info
->
default_table_charset
=
share
->
table_charset
;
create_info
->
table_charset
=
0
;
create_info
->
comment
=
share
->
comment
;
...
...
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