~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
642.1.69 by Lee
enable more tests and a few Solaris code clean ups
9
#Drizzle does not support global myisam_data_pointer_size system variable
10
#set global myisam_data_pointer_size=2;
1 by brian
clean slate
11
CREATE TABLE t1 (a int auto_increment primary key not null, b longtext) ENGINE=MyISAM;
12
13
--disable_query_log
910.4.13 by Stewart Smith
batch up more INSERTs into transactions to help tests run quicker.
14
begin;
1 by brian
clean slate
15
let $1= 303;
16
while ($1)
17
{
18
  INSERT INTO t1 SET b=repeat('a',200);
19
  dec $1;
20
}
910.4.13 by Stewart Smith
batch up more INSERTs into transactions to help tests run quicker.
21
commit;
1 by brian
clean slate
22
--enable_query_log
23
642.1.69 by Lee
enable more tests and a few Solaris code clean ups
24
#DELETE FROM t1 WHERE a=1 or a=5;
25
26
--error 1114
27
#INSERT INTO t1 SET b=repeat('a',600);
28
#CHECK TABLE t1 EXTENDED;
29
30
--error 1114
31
#UPDATE t1 SET b=repeat('a', 800) where a=10;
32
#CHECK TABLE t1 EXTENDED;
33
34
#INSERT INTO t1 SET b=repeat('a',400);
35
#CHECK TABLE t1 EXTENDED;
36
37
#DELETE FROM t1 WHERE a=2 or a=6;
38
#UPDATE t1 SET b=repeat('a', 600) where a=11;
39
#CHECK TABLE t1 EXTENDED;
40
#drop table t1;
41
42
#set global myisam_data_pointer_size=default;
1 by brian
clean slate
43
44
# End of 4.1 tests