~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/large_tests/t/falcon_record_cache_memory_leak2-big.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
--source include/have_falcon.inc
 
2
--source include/big_test.inc
 
3
#
 
4
# Record cache memory leak test second version. Inspired by Kevin.
 
5
#
 
6
# Note: This is a bigger version of the original test to be
 
7
#       used with --big-test option.
 
8
#
 
9
 
 
10
# ----------------------------------------------------- #
 
11
# --- Initialisation                                --- #
 
12
# ----------------------------------------------------- #
 
13
let $engine = 'Falcon';
 
14
eval SET @@storage_engine = $engine;
 
15
 
 
16
--disable_warnings
 
17
DROP TABLE IF EXISTS t1;
 
18
--enable_warnings
 
19
 
 
20
CREATE TABLE t1 (c1 varchar(100));
 
21
INSERT INTO t1 VALUES (repeat('A', 100));
 
22
INSERT INTO t1 VALUES (repeat('B', 100));
 
23
INSERT INTO t1 VALUES (repeat('C', 100));
 
24
COMMIT;
 
25
 
 
26
# ----------------------------------------------------- #
 
27
# --- Test                                          --- #
 
28
# ----------------------------------------------------- #
 
29
--disable_query_log
 
30
let $i= 500000;
 
31
while ($i) 
 
32
{
 
33
    BEGIN;
 
34
    UPDATE t1 SET c1 = lower(c1);
 
35
    UPDATE t1 SET c1 = upper(c1);
 
36
    UPDATE t1 SET c1 = lower(c1);
 
37
    UPDATE t1 SET c1 = upper(c1);
 
38
    UPDATE t1 SET c1 = lower(c1);
 
39
    UPDATE t1 SET c1 = upper(c1);
 
40
    UPDATE t1 SET c1 = lower(c1);
 
41
    UPDATE t1 SET c1 = upper(c1);
 
42
    COMMIT;
 
43
 
 
44
    dec $i;
 
45
}
 
46
--enable_query_log
 
47
 
 
48
# ----------------------------------------------------- #
 
49
# --- Check                                         --- #
 
50
# ----------------------------------------------------- #
 
51
SELECT count(*) FROM t1;
 
52
 
 
53
# ----------------------------------------------------- #
 
54
# --- Final cleanup                                 --- #
 
55
# ----------------------------------------------------- #
 
56
DROP TABLE t1;