summaryrefslogtreecommitdiff
path: root/mysql-test/r/myisam_data_pointer_size_func.result
blob: 82d9a7dad66fe631705c3e80ed386b51072d03ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'#--------------------FN_DYNVARS_093_01-------------------------#'
SET @start_value= @@global.myisam_data_pointer_size;
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;
SET @@global.myisam_data_pointer_size= @start_value;