~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/t/almost_full.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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