~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
#
2
# Some special cases with empty tables
3
#
4
5
--disable_warnings
6
drop table if exists t1;
7
--enable_warnings
8
9
set global myisam_data_pointer_size=2;
10
CREATE TABLE t1 (a int auto_increment primary key not null, b longtext) ENGINE=MyISAM;
11
12
--disable_query_log
13
let $1= 303;
14
while ($1)
15
{
16
  INSERT INTO t1 SET b=repeat('a',200);
17
  dec $1;
18
}
19
--enable_query_log
20
21
DELETE FROM t1 WHERE a=1 or a=5;
22
23
--error 1114
24
INSERT INTO t1 SET b=repeat('a',600);
25
CHECK TABLE t1 EXTENDED;
26
27
--error 1114
28
UPDATE t1 SET b=repeat('a', 800) where a=10;
29
CHECK TABLE t1 EXTENDED;
30
31
INSERT INTO t1 SET b=repeat('a',400);
32
CHECK TABLE t1 EXTENDED;
33
34
DELETE FROM t1 WHERE a=2 or a=6;
35
UPDATE t1 SET b=repeat('a', 600) where a=11;
36
CHECK TABLE t1 EXTENDED;
37
drop table t1;
38
39
set global myisam_data_pointer_size=default;
40
41
# End of 4.1 tests