mariadb/mysql-test/r/innodb_autoinc_lock_mode_func.result
unknown b00c536378 System variable tests delivered by Folio3 (see WL4288).
BitKeeper/etc/ignore:
  Added mysql-test/linux_sys_vars.inc mysql-test/load_sysvars.inc mysql-test/windows_sys_vars.inc to the ignore list
2008-04-10 15:14:28 +02:00

22 lines
633 B
Text

'#--------------------FN_DYNVARS_039_01-------------------------#'
SET global innodb_autoinc_lock_mode = 1;
ERROR HY000: Variable 'innodb_autoinc_lock_mode' is a read only variable
'--innodb_autoinc_lock_mode is 1 (consecutive)--'
SELECT @@global.innodb_autoinc_lock_mode;
@@global.innodb_autoinc_lock_mode
1
DROP TABLE IF EXISTS t1;
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');
'the new auto incremented value should be 104'
SELECT * from t1;
a b
1 c
5 a
100 b
101 d
104 e