mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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
This commit is contained in:
42
mysql-test/r/myisam_data_pointer_size_func.result
Normal file
42
mysql-test/r/myisam_data_pointer_size_func.result
Normal file
@ -0,0 +1,42 @@
|
||||
'#--------------------FN_DYNVARS_093_01-------------------------#'
|
||||
SET @@global.myisam_data_pointer_size = 2;
|
||||
'connect (con1,localhost,root,,,,)'
|
||||
'connection con1'
|
||||
SELECT @@global.myisam_data_pointer_size;
|
||||
@@global.myisam_data_pointer_size
|
||||
2
|
||||
SET @@global.myisam_data_pointer_size = 3;
|
||||
'connect (con2,localhost,root,,,,)'
|
||||
'connection con2'
|
||||
SELECT @@global.myisam_data_pointer_size;
|
||||
@@global.myisam_data_pointer_size
|
||||
3
|
||||
'#--------------------FN_DYNVARS_093_02-------------------------#'
|
||||
'connection con1'
|
||||
DROP PROCEDURE IF EXISTS sp_addRec;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE PROCEDURE sp_addRec(IN count INT)
|
||||
BEGIN
|
||||
WHILE (count>0) DO
|
||||
INSERT INTO t1 value(1);
|
||||
SET count = count -1;
|
||||
END WHILE;
|
||||
END //
|
||||
SET @@global.myisam_data_pointer_size = 2;
|
||||
CREATE TABLE t1(a INT);
|
||||
CALL sp_addRec(65535);
|
||||
CALL sp_addRec(1);
|
||||
ERROR HY000: The table 't1' is full
|
||||
SELECT count(*) from t1;
|
||||
count(*)
|
||||
65535
|
||||
'--Checking myisam_data_pointer_size with MAX_ROWS table option--'
|
||||
SET @@global.myisam_data_pointer_size = 2;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1(a INT)MAX_ROWS=70000;
|
||||
CALL sp_addRec(65536);
|
||||
SELECT count(*) from t1;
|
||||
count(*)
|
||||
65536
|
||||
DROP PROCEDURE sp_addRec;
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user