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
05c3dced
Commit
05c3dced
authored
Oct 20, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-22627 fixup: Cover also ALTER TABLE...ALGORITHM=INPLACE
parent
69b3de83
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/default_row_format_create.result
mysql-test/suite/innodb/r/default_row_format_create.result
+8
-0
mysql-test/suite/innodb/t/default_row_format_create.test
mysql-test/suite/innodb/t/default_row_format_create.test
+9
-0
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+2
-0
No files found.
mysql-test/suite/innodb/r/default_row_format_create.result
View file @
05c3dced
...
...
@@ -56,4 +56,12 @@ DROP TABLE IF EXISTS t;
SET GLOBAL innodb_compression_level=1;
CREATE TABLE t(c INT) ENGINE=InnoDB page_compressed=1;
DROP TABLE IF EXISTS t;
SET GLOBAL innodb_compression_level=1;
CREATE TABLE t(a INT)ENGINE=InnoDB ROW_FORMAT=DYNAMIC page_compressed=1;
SET GLOBAL innodb_compression_level=0;
ALTER TABLE t FORCE, ROW_FORMAT=DEFAULT, ALGORITHM=INPLACE;
ERROR HY000: Table storage engine 'InnoDB' does not support the create option 'PAGE_COMPRESSED'
ALTER TABLE t FORCE, ROW_FORMAT=DEFAULT, ALGORITHM=COPY;
ERROR HY000: Can't create table `test`.`t` (errno: 140 "Wrong create options")
DROP TABLE t;
SET GLOBAL innodb_compression_level=@save_level;
mysql-test/suite/innodb/t/default_row_format_create.test
View file @
05c3dced
...
...
@@ -59,4 +59,13 @@ SET GLOBAL innodb_compression_level=1;
CREATE
TABLE
t
(
c
INT
)
ENGINE
=
InnoDB
page_compressed
=
1
;
DROP
TABLE
IF
EXISTS
t
;
--
enable_warnings
SET
GLOBAL
innodb_compression_level
=
1
;
CREATE
TABLE
t
(
a
INT
)
ENGINE
=
InnoDB
ROW_FORMAT
=
DYNAMIC
page_compressed
=
1
;
SET
GLOBAL
innodb_compression_level
=
0
;
--
error
ER_ILLEGAL_HA_CREATE_OPTION
ALTER
TABLE
t
FORCE
,
ROW_FORMAT
=
DEFAULT
,
ALGORITHM
=
INPLACE
;
--
error
ER_CANT_CREATE_TABLE
ALTER
TABLE
t
FORCE
,
ROW_FORMAT
=
DEFAULT
,
ALGORITHM
=
COPY
;
DROP
TABLE
t
;
SET
GLOBAL
innodb_compression_level
=@
save_level
;
storage/innobase/handler/handler0alter.cc
View file @
05c3dced
...
...
@@ -5584,6 +5584,8 @@ ha_innobase::prepare_inplace_alter_table(
}
if
(
!
info
.
innobase_table_flags
())
{
my_error
(
ER_ILLEGAL_HA_CREATE_OPTION
,
MYF
(
0
),
table_type
(),
"PAGE_COMPRESSED"
);
goto
err_exit_no_heap
;
}
...
...
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