Skip to content

Commit 953582e

Browse files
author
viswanatham gudipati
committed
wl6504: added new testcase & result file
1 parent f0c62f1 commit 953582e

2 files changed

Lines changed: 92 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
SELECT @@global.innodb_buffer_pool_dump_pct;
2+
@@global.innodb_buffer_pool_dump_pct
3+
100
4+
SET GLOBAL innodb_buffer_pool_dump_pct=20;
5+
SELECT @@global.innodb_buffer_pool_dump_pct;
6+
@@global.innodb_buffer_pool_dump_pct
7+
20
8+
SET GLOBAL innodb_buffer_pool_dump_pct=1;
9+
SELECT @@global.innodb_buffer_pool_dump_pct;
10+
@@global.innodb_buffer_pool_dump_pct
11+
1
12+
SET GLOBAL innodb_buffer_pool_dump_pct=100;
13+
SELECT @@global.innodb_buffer_pool_dump_pct;
14+
@@global.innodb_buffer_pool_dump_pct
15+
100
16+
SET GLOBAL innodb_buffer_pool_dump_pct=101;
17+
Warnings:
18+
Warning 1292 Truncated incorrect innodb_buffer_pool_dump_pct value: '101'
19+
SELECT @@global.innodb_buffer_pool_dump_pct;
20+
@@global.innodb_buffer_pool_dump_pct
21+
100
22+
SET GLOBAL innodb_buffer_pool_dump_pct=-1;
23+
Warnings:
24+
Warning 1292 Truncated incorrect innodb_buffer_pool_dump_pct value: '-1'
25+
SELECT @@global.innodb_buffer_pool_dump_pct;
26+
@@global.innodb_buffer_pool_dump_pct
27+
1
28+
SET GLOBAL innodb_buffer_pool_dump_pct=Default;
29+
SELECT @@global.innodb_buffer_pool_dump_pct;
30+
@@global.innodb_buffer_pool_dump_pct
31+
100
32+
SET GLOBAL innodb_buffer_pool_dump_pct='foo';
33+
ERROR 42000: Incorrect argument type to variable 'innodb_buffer_pool_dump_pct'
34+
SET innodb_buffer_pool_dump_pct=50;
35+
ERROR HY000: Variable 'innodb_buffer_pool_dump_pct' is a GLOBAL variable and should be set with SET GLOBAL
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
############################################
2+
# Variable Name: innodb_buffer_pool_dump_pct
3+
# Scope: GLOBAL
4+
# Access Type: Dynamic
5+
# Data Type: Integer
6+
# Default Value: 100
7+
# Range: 1-100
8+
############################################
9+
10+
-- source include/have_innodb.inc
11+
12+
# Check the default value
13+
SELECT @@global.innodb_buffer_pool_dump_pct;
14+
15+
# Set the valid value
16+
SET GLOBAL innodb_buffer_pool_dump_pct=20;
17+
18+
# Check the value is 20
19+
SELECT @@global.innodb_buffer_pool_dump_pct;
20+
21+
# Set the lower Boundary value
22+
SET GLOBAL innodb_buffer_pool_dump_pct=1;
23+
24+
# Check the value is 1
25+
SELECT @@global.innodb_buffer_pool_dump_pct;
26+
27+
# Set the upper boundary value
28+
SET GLOBAL innodb_buffer_pool_dump_pct=100;
29+
30+
# Check the value is 100
31+
SELECT @@global.innodb_buffer_pool_dump_pct;
32+
33+
# Set the beyond upper boundary value
34+
SET GLOBAL innodb_buffer_pool_dump_pct=101;
35+
36+
# Check the value is 100
37+
SELECT @@global.innodb_buffer_pool_dump_pct;
38+
39+
# Set the beyond lower boundary value
40+
SET GLOBAL innodb_buffer_pool_dump_pct=-1;
41+
42+
# Check the value is 1
43+
SELECT @@global.innodb_buffer_pool_dump_pct;
44+
45+
# Set the Default value
46+
SET GLOBAL innodb_buffer_pool_dump_pct=Default;
47+
48+
# Check the default value
49+
SELECT @@global.innodb_buffer_pool_dump_pct;
50+
51+
# Set with some invalid value
52+
--error ER_WRONG_TYPE_FOR_VAR
53+
SET GLOBAL innodb_buffer_pool_dump_pct='foo';
54+
55+
# Set without using Global
56+
--error ER_GLOBAL_VARIABLE
57+
SET innodb_buffer_pool_dump_pct=50;

0 commit comments

Comments
 (0)