mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / engines / rr_trx / r / rr_i_40-44.result
blob5977d34b95850be2770e9e50f1fc79b3ca91a20d
1 SET autocommit = 0;
2 START TRANSACTION;
4 *** multi-statemement insert, inserting first positive then negative number:
6 INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
7 `int2`, `int2_key`, `int2_unique`,
8 `for_update`, `connection_id`, `thread_id`, `is_uncommitted`, `is_consistent`)
9 VALUES (40, 40, 40, CONNECTION_ID(),
10 -40, -40, -CONNECTION_ID(),
11 0, CONNECTION_ID(), 0, 0, 1);
12 INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
13 `int2`, `int2_key`, `int2_unique`,
14 `for_update`, `connection_id`, `thread_id`, `is_uncommitted`, `is_consistent`)
15 VALUES (-40, -40, -40, -CONNECTION_ID(),
16 40, 40, CONNECTION_ID(),
17 0, CONNECTION_ID(), 0, 0, 1);
18 COMMIT;
19 START TRANSACTION;
21 *** insert multiple rows using a single statement:
23 INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
24 `int2`, `int2_key`, `int2_unique`,
25 `for_update`, `connection_id`, `thread_id`, `is_uncommitted`, `is_consistent`)
26 VALUES (41, 41, 41, CONNECTION_ID()+1,
27 -41, -41, -(CONNECTION_ID()+1),
28 0, CONNECTION_ID(), 0, 0, 1),
29 (41, 41, 41, CONNECTION_ID()+2,
30 41, 41, CONNECTION_ID()+2,
31 0, CONNECTION_ID(), 0, 0, 0),
32 (41, -41, -41, -(CONNECTION_ID()+2),
33 -41, -41, -(CONNECTION_ID()+2),
34 0, CONNECTION_ID(), 0, 0, 0);
35 COMMIT;
36 START TRANSACTION;
38 *** INSERT IGNORE using both known duplicate values and non-duplicates:
40 INSERT IGNORE INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
41 `int2`, `int2_key`, `int2_unique`,
42 `for_update`, `connection_id`, `thread_id`, `is_uncommitted`, `is_consistent`)
43 VALUES (42, 42, 42, CONNECTION_ID()+3,
44 -42, -42, -(CONNECTION_ID()+3),
45 0, CONNECTION_ID(), 0, 0, 1);
46 INSERT IGNORE INTO t1 (`pk`, `id`, `int1`, `int1_key`, `int1_unique`,
47 `int2`, `int2_key`, `int2_unique`,
48 `for_update`, `connection_id`, `thread_id`, `is_uncommitted`, `is_consistent`)
49 VALUES (5, 43, 42, 42, CONNECTION_ID(),
50 -42, -42, CONNECTION_ID(),
51 0, CONNECTION_ID(), 0, 0, 0);
52 INSERT IGNORE INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
53 `int2`, `int2_key`, `int2_unique`,
54 `for_update`, `connection_id`, `thread_id`, `is_uncommitted`, `is_consistent`)
55 VALUES (44, 42, 42, (CONNECTION_ID() + 1000) MOD 5000,
56 -42, -42, -((CONNECTION_ID() + 1000) MOD 5000),
57 0, CONNECTION_ID(), 0, 0, 1);
58 COMMIT;