mirror of
https://github.com/MariaDB/server.git
synced 2025-05-08 15:01:49 +03:00
support ha_innodb.so as a dynamic plugin. * remove obsolete *,innodb_plugin.rdiff files * s/--plugin-load=/--plugin-load-add=/ * MYSQL_PLUGIN_IMPORT glob_hostname[] * use my_error instead of push_warning_printf(ER_DEFAULT) * don't use tdc_size and tc_size in a module update test cases (XtraDB is 5.6.14, InnoDB is 5.6.10) * copy new tests over * disable some tests for (old) InnoDB * delete XtraDB tests that no longer apply small compatibility changes: * s/HTON_EXTENDED_KEYS/HTON_SUPPORTS_EXTENDED_KEYS/ * revert unnecessary InnoDB changes to make it a bit closer to the upstream fix XtraDB to compile on Windows (both as a static and a dynamic plugin) disable XtraDB on Windows (deadlocks) and where no atomic ops are available (e.g. CentOS 5) storage/innobase/handler/ha_innodb.cc: revert few unnecessary changes to make it a bit closer to the original InnoDB storage/innobase/include/univ.i: correct the version to match what it was merged from
62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
###################################################
|
|
# Basic test for innodb_log_archive variable #
|
|
###################################################
|
|
|
|
--source include/have_xtradb.inc
|
|
|
|
####################################################################
|
|
# Displaying default value #
|
|
####################################################################
|
|
SELECT @@GLOBAL.innodb_log_archive;
|
|
--echo 0 Expected
|
|
|
|
|
|
####################################################################
|
|
# Check if Value can set #
|
|
####################################################################
|
|
|
|
SET @save_innodb_log_archive = @@GLOBAL.innodb_log_archive;
|
|
SET @@GLOBAL.innodb_log_archive=1;
|
|
|
|
SELECT @@GLOBAL.innodb_log_archive;
|
|
--echo 1 Expected
|
|
|
|
SELECT VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='innodb_log_archive';
|
|
--echo ON Expected
|
|
|
|
SET @@GLOBAL.innodb_log_archive = @save_innodb_log_archive;
|
|
|
|
############################################
|
|
# Check accessing variable without GLOBAL #
|
|
############################################
|
|
SELECT @@innodb_log_archive;
|
|
--echo 0 Expected
|
|
|
|
|
|
|
|
##########################################################################
|
|
# Check if innodb_log_archive can be accessed without @@ sign #
|
|
##########################################################################
|
|
|
|
SELECT @@innodb_log_archive;
|
|
--echo 0 Expected
|
|
|
|
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT @@local.innodb_log_archive;
|
|
--echo Expected error 'Variable is a GLOBAL variable'
|
|
|
|
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT @@SESSION.innodb_log_archive;
|
|
--echo Expected error 'Variable is a GLOBAL variable'
|
|
|
|
SELECT @@GLOBAL.innodb_log_archive;
|
|
--echo 0 Expected
|
|
|
|
--Error ER_BAD_FIELD_ERROR
|
|
SELECT innodb_log_archive = @@SESSION.innodb_log_archive;
|
|
--echo Expected error Unknown column 'innodb_log_archive' in 'field list'
|
|
|
|
|