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
c7daabdb
Commit
c7daabdb
authored
Mar 16, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13134/MDEV-21855: Add a test case
parent
5fe87ac4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
147 additions
and
0 deletions
+147
-0
mysql-test/suite/sys_vars/r/alter_algorithm_basic.result
mysql-test/suite/sys_vars/r/alter_algorithm_basic.result
+89
-0
mysql-test/suite/sys_vars/t/alter_algorithm_basic.test
mysql-test/suite/sys_vars/t/alter_algorithm_basic.test
+58
-0
No files found.
mysql-test/suite/sys_vars/r/alter_algorithm_basic.result
0 → 100644
View file @
c7daabdb
SET @start_global_value = @@global.alter_algorithm;
SET GLOBAL alter_algorithm=1.1;
ERROR 42000: Incorrect argument type to variable 'alter_algorithm'
SET GLOBAL alter_algorithm=-1;
ERROR 42000: Variable 'alter_algorithm' can't be set to the value of '-1'
SET GLOBAL alter_algorithm=weird;
ERROR 42000: Variable 'alter_algorithm' can't be set to the value of 'weird'
SET GLOBAL alter_algorithm=4;
SELECT @@global.alter_algorithm;
@@global.alter_algorithm
INSTANT
SET GLOBAL alter_algorithm=3;
SELECT @@global.alter_algorithm;
@@global.alter_algorithm
NOCOPY
SET GLOBAL alter_algorithm=0;
SELECT @@global.alter_algorithm;
@@global.alter_algorithm
DEFAULT
SET GLOBAL alter_algorithm=1;
SELECT @@global.alter_algorithm;
@@global.alter_algorithm
COPY
SET GLOBAL alter_algorithm=2;
SELECT @@global.alter_algorithm;
@@global.alter_algorithm
INPLACE
SET GLOBAL alter_algorithm=5;
ERROR 42000: Variable 'alter_algorithm' can't be set to the value of '5'
SELECT @@global.alter_algorithm;
@@global.alter_algorithm
INPLACE
SET GLOBAL alter_algorithm=NOCOPY;
SET alter_algorithm=1.1;
ERROR 42000: Incorrect argument type to variable 'alter_algorithm'
SET alter_algorithm=-1;
ERROR 42000: Variable 'alter_algorithm' can't be set to the value of '-1'
SET alter_algorithm=weird;
ERROR 42000: Variable 'alter_algorithm' can't be set to the value of 'weird'
SET alter_algorithm=4;
SELECT @@alter_algorithm;
@@alter_algorithm
INSTANT
SET alter_algorithm=3;
SELECT @@alter_algorithm;
@@alter_algorithm
NOCOPY
SET alter_algorithm=0;
SELECT @@alter_algorithm;
@@alter_algorithm
DEFAULT
SET alter_algorithm=1;
SELECT @@alter_algorithm;
@@alter_algorithm
COPY
SET alter_algorithm=2;
SELECT @@alter_algorithm;
@@alter_algorithm
INPLACE
SET alter_algorithm=5;
ERROR 42000: Variable 'alter_algorithm' can't be set to the value of '5'
SELECT @@alter_algorithm;
@@alter_algorithm
INPLACE
SET SESSION alter_algorithm=INSTANT;
SHOW SESSION VARIABLES LIKE 'alter_algorithm';
Variable_name Value
alter_algorithm INSTANT
SET SESSION alter_algorithm=DEFAULT;
SHOW SESSION VARIABLES LIKE 'alter_algorithm';
Variable_name Value
alter_algorithm NOCOPY
SET SESSION alter_algorithm='DEFAULT';
SHOW SESSION VARIABLES LIKE 'alter_algorithm';
Variable_name Value
alter_algorithm DEFAULT
SET SESSION alter_algorithm=DEFAULT;
SHOW SESSION VARIABLES LIKE 'alter_algorithm';
Variable_name Value
alter_algorithm NOCOPY
SET GLOBAL alter_algorithm=DEFAULT;
SHOW SESSION VARIABLES LIKE 'alter_algorithm';
Variable_name Value
alter_algorithm NOCOPY
SET SESSION alter_algorithm=DEFAULT;
SHOW SESSION VARIABLES LIKE 'alter_algorithm';
Variable_name Value
alter_algorithm DEFAULT
SET GLOBAL alter_algorithm = @start_global_value;
mysql-test/suite/sys_vars/t/alter_algorithm_basic.test
0 → 100644
View file @
c7daabdb
SET
@
start_global_value
=
@@
global
.
alter_algorithm
;
--
error
ER_WRONG_TYPE_FOR_VAR
SET
GLOBAL
alter_algorithm
=
1.1
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
GLOBAL
alter_algorithm
=-
1
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
GLOBAL
alter_algorithm
=
weird
;
SET
GLOBAL
alter_algorithm
=
4
;
SELECT
@@
global
.
alter_algorithm
;
SET
GLOBAL
alter_algorithm
=
3
;
SELECT
@@
global
.
alter_algorithm
;
SET
GLOBAL
alter_algorithm
=
0
;
SELECT
@@
global
.
alter_algorithm
;
SET
GLOBAL
alter_algorithm
=
1
;
SELECT
@@
global
.
alter_algorithm
;
SET
GLOBAL
alter_algorithm
=
2
;
SELECT
@@
global
.
alter_algorithm
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
GLOBAL
alter_algorithm
=
5
;
SELECT
@@
global
.
alter_algorithm
;
SET
GLOBAL
alter_algorithm
=
NOCOPY
;
--
error
ER_WRONG_TYPE_FOR_VAR
SET
alter_algorithm
=
1.1
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
alter_algorithm
=-
1
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
alter_algorithm
=
weird
;
SET
alter_algorithm
=
4
;
SELECT
@@
alter_algorithm
;
SET
alter_algorithm
=
3
;
SELECT
@@
alter_algorithm
;
SET
alter_algorithm
=
0
;
SELECT
@@
alter_algorithm
;
SET
alter_algorithm
=
1
;
SELECT
@@
alter_algorithm
;
SET
alter_algorithm
=
2
;
SELECT
@@
alter_algorithm
;
--
error
ER_WRONG_VALUE_FOR_VAR
SET
alter_algorithm
=
5
;
SELECT
@@
alter_algorithm
;
SET
SESSION
alter_algorithm
=
INSTANT
;
SHOW
SESSION
VARIABLES
LIKE
'alter_algorithm'
;
SET
SESSION
alter_algorithm
=
DEFAULT
;
SHOW
SESSION
VARIABLES
LIKE
'alter_algorithm'
;
SET
SESSION
alter_algorithm
=
'DEFAULT'
;
SHOW
SESSION
VARIABLES
LIKE
'alter_algorithm'
;
SET
SESSION
alter_algorithm
=
DEFAULT
;
SHOW
SESSION
VARIABLES
LIKE
'alter_algorithm'
;
SET
GLOBAL
alter_algorithm
=
DEFAULT
;
SHOW
SESSION
VARIABLES
LIKE
'alter_algorithm'
;
SET
SESSION
alter_algorithm
=
DEFAULT
;
SHOW
SESSION
VARIABLES
LIKE
'alter_algorithm'
;
SET
GLOBAL
alter_algorithm
=
@
start_global_value
;
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