mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 21:42:35 +01:00
1fc5777320
- Updated slow_query_log_file_basic and general_log_file basis instead of the func version as the func version run good but the basic versions fail. - Sent innodb.test to dev@innodb.com. - variables.test has differences probably due to a bug in mtr or in the SET statement (see bug#39369). - general_log_file_basic.test and slow_query_log_file_bsaic.test have differences, which might be produced by the new mtr (see bug#38124).
59 lines
2.8 KiB
Text
59 lines
2.8 KiB
Text
################# mysql-test\t\innodb_autoinc_lock_mode_func.test ############
|
|
# #
|
|
# Variable Name: innodb_autoinc_lock_mode #
|
|
# Scope: GLOBAL #
|
|
# Access Type: Readonly #
|
|
# Data Type: Numeric #
|
|
# Default Value: 1 #
|
|
# Range: 0,1,2 #
|
|
# #
|
|
# #
|
|
# Creation Date: 2008-03-08 #
|
|
# Author: Rizwan Maredia #
|
|
# #
|
|
# Description: #
|
|
# Test Cases of Dynamic System Variable innodb_autoextend_increment that #
|
|
# checks the behavior of this variable #
|
|
# #
|
|
# Reference: #
|
|
# http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html #
|
|
# #
|
|
###############################################################################
|
|
|
|
--echo '#--------------------FN_DYNVARS_039_01-------------------------#'
|
|
################################################################
|
|
# Begin the functionality Testing of innodb_autoinc_lock_mode #
|
|
################################################################
|
|
--source include/have_innodb.inc
|
|
|
|
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SET global innodb_autoinc_lock_mode = 1;
|
|
|
|
#========================================================
|
|
--echo '--innodb_autoinc_lock_mode is 1 (consecutive)--'
|
|
#========================================================
|
|
|
|
|
|
# innodb_autoinc_lock_mode is 1 in opt file
|
|
SELECT @@global.innodb_autoinc_lock_mode;
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE t1(
|
|
a INT AUTO_INCREMENT PRIMARY KEY,
|
|
b CHAR
|
|
) ENGINE=INNODB, AUTO_INCREMENT=100;
|
|
|
|
INSERT INTO t1 (a,b) VALUES (5,'a'), (NULL,'b'), (1,'c'), (NULL,'d');
|
|
INSERT INTO t1 (a,b) VALUES (NULL,'e');
|
|
--echo 'the new auto incremented value should be 104'
|
|
SELECT * FROM t1;
|
|
|
|
DROP TABLE t1;
|
|
|
|
###############################################################
|
|
# End of functionality Testing for innodb_autoinc_lock_mode #
|
|
###############################################################
|
|
|