Server IP : 104.21.38.3 / Your IP : 172.69.165.58 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/sys_vars/t/ |
Upload File : |
################# 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 # ###############################################################