1
################# mysql-test\t\innodb_autoinc_lock_mode_func.test ############
3
# Variable Name: innodb_autoinc_lock_mode #
5
# Access Type: Readonly #
11
# Creation Date: 2008-03-08 #
12
# Author: Rizwan Maredia #
14
#Description:Test Cases of Dynamic System Variable innodb_autoextend_increment#
15
# that checks the behavior of this variable #
17
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
18
# server-system-variables.html #
20
###############################################################################
22
--echo '#--------------------FN_DYNVARS_039_01-------------------------#'
23
################################################################
24
# Begin the functionality Testing of innodb_autoinc_lock_mode #
25
################################################################
26
--source include/have_innodb.inc
28
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
29
SET global innodb_autoinc_lock_mode = 1;
31
#========================================================
32
--echo '--innodb_autoinc_lock_mode is 1 (consecutive)--'
33
#========================================================
36
# innodb_autoinc_lock_mode is 1 in opt file
37
SELECT @@global.innodb_autoinc_lock_mode;
40
DROP TABLE IF EXISTS t1;
44
a INT AUTO_INCREMENT PRIMARY KEY,
46
)ENGINE=INNODB, AUTO_INCREMENT=100;
48
INSERT INTO t1 (a,b) VALUES (5,'a'), (NULL,'b'), (1,'c'), (NULL,'d');
49
INSERT INTO t1 (a,b) VALUES (NULL,'e');
50
--echo 'the new auto incremented value should be 104'
53
###############################################################
54
# End of functionality Testing for innodb_autoinc_lock_mode #
55
###############################################################