Commit 5d0c1230 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Add missing sys_var test for innodb_stats_include_delete_marked

parent 83da1a1e
SELECT @@innodb_stats_include_delete_marked;
@@innodb_stats_include_delete_marked
0
SET GLOBAL innodb_stats_include_delete_marked=1;
SELECT @@innodb_stats_include_delete_marked;
@@innodb_stats_include_delete_marked
1
SET SESSION innodb_stats_include_delete_marked=1;
ERROR HY000: Variable 'innodb_stats_include_delete_marked' is a GLOBAL variable and should be set with SET GLOBAL
SET GLOBAL innodb_stats_include_delete_marked=100;
ERROR 42000: Variable 'innodb_stats_include_delete_marked' can't be set to the value of '100'
SET GLOBAL innodb_stats_include_delete_marked=foo;
ERROR 42000: Variable 'innodb_stats_include_delete_marked' can't be set to the value of 'foo'
SET GLOBAL innodb_stats_include_delete_marked=OFF ;
SELECT @@innodb_stats_include_delete_marked;
@@innodb_stats_include_delete_marked
0
SET GLOBAL innodb_stats_include_delete_marked=ON ;
SELECT @@innodb_stats_include_delete_marked;
@@innodb_stats_include_delete_marked
1
SET GLOBAL innodb_stats_include_delete_marked=Default ;
SELECT @@innodb_stats_include_delete_marked;
@@innodb_stats_include_delete_marked
0
###############################################################################
# #
# Variable Name: innodb_stats_include_delete_marked #
# Scope: Global #
# Access Type: Dynamic #
# Data Type: numeric #
# #
# #
# Creation Date: 2016-08-29 #
# Author : Aditya #
# #
# #
# Description: #
# * Value check #
# * Scope check #
# #
###############################################################################
--source include/have_innodb.inc
####################################################################
# Display default value #
####################################################################
SELECT @@innodb_stats_include_delete_marked;
SET GLOBAL innodb_stats_include_delete_marked=1;
SELECT @@innodb_stats_include_delete_marked;
# check error
--error ER_GLOBAL_VARIABLE
SET SESSION innodb_stats_include_delete_marked=1;
# check error
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL innodb_stats_include_delete_marked=100;
# check error
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL innodb_stats_include_delete_marked=foo;
SET GLOBAL innodb_stats_include_delete_marked=OFF ;
SELECT @@innodb_stats_include_delete_marked;
SET GLOBAL innodb_stats_include_delete_marked=ON ;
SELECT @@innodb_stats_include_delete_marked;
# Check with default setting
SET GLOBAL innodb_stats_include_delete_marked=Default ;
SELECT @@innodb_stats_include_delete_marked;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment