File: rr_sc_select-limit-nolimit_4.result

package info (click to toggle)
mysql-5.1 5.1.73-1%2Bdeb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 197,132 kB
  • ctags: 93,377
  • sloc: cpp: 579,952; ansic: 429,462; perl: 49,053; sh: 21,692; pascal: 21,272; yacc: 12,801; makefile: 4,545; xml: 4,114; sql: 3,297; lex: 1,265; asm: 1,023
file content (72 lines) | stat: -rw-r--r-- 4,759 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
SET autocommit = 0;
START TRANSACTION;
Comparing results from 2 queries (unless we deadlock or some such)...
*** Query 1: SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key`
*** Disabling query log (we may deadlock and not do this after all)
*** Creating temp table with results from query 'SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key`' unless we deadlock or time out.
*** Enabling query log
*** Filler: 
SELECT SLEEP(1);
SLEEP(1)
0
*** Query 2: SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key` LIMIT 987654321
*** Disabling query log (we may deadlock and not do this after all)
*** Creating temp table with results from query 'SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key` LIMIT 987654321' unless we deadlock or time out.
*** Enabling query log
*** Filler: Do something other than sleep while waiting for other transactions to do stuff...
CREATE TEMPORARY TABLE tmpSelectLimitNoLimit (a INT, b VARCHAR(255), c TIMESTAMP, KEY(a));
INSERT INTO tmpSelectLimitNoLimit VALUES
(-1, 'This is a filler', NOW()),
(0, 'More stuff', NOW()),
(999999999, 'Even more bogus data', NOW()),
(-98765, 'Even more bogus data', NOW());
SELECT * FROM tmpSelectLimitNoLimit WHERE a < -99999999 ORDER BY a;
a	b	c
*** Query 3: SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key` LIMIT 987654321
*** Disabling query log (we may deadlock and not do this after all)
*** Creating temp table with results from query 'SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key` LIMIT 987654321' unless we deadlock or time out.
*** Enabling query log
*** Filler:
UPDATE tmpSelectLimitNoLimit SET a = 3;
SELECT SLEEP(1);
SLEEP(1)
0
*** Query 4: SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key`
*** Disabling query log (we may deadlock and not do this after all)
*** Creating temp table with results from query 'SELECT * FROM t1 WHERE `pk` > 1000 ORDER BY `int1_key`' unless we deadlock or time out.
*** Enabling query log
***************************************************************************
* Checking REPEATABLE READ by comparing result sets from same transaction
***************************************************************************
*** Query log disabled. See include files used by test for query details.
*** Comparing query 1 (A) with query 2 (B):
###########################
# Detect missing rows:
###########################
A.pk	B.pk	A.id	B.id	A.int1	B.int1	A.int1_key	B.int1_key	A.int1_unique	B.int1_unique	A.int2	B.int2	A.int2_key	B.int2_key	A.int2_unique	B.int2_unique	A.for_update	B.for_update	A.timestamp	B.timestamp	A.connection_id	B.connection_id	A.thread_id	B.thread_id	A.is_uncommitted	B.is_uncommitted	A.is_consistent	B.is_consistent

###########################
# Detect changed rows:
###########################
A.pk	B.pk	A.id	B.id	A.int1	B.int1	A.int1_key	B.int1_key	A.int1_unique	B.int1_unique	A.int2	B.int2	A.int2_key	B.int2_key	A.int2_unique	B.int2_unique	A.for_update	B.for_update	A.timestamp	B.timestamp	A.connection_id	B.connection_id	A.thread_id	B.thread_id	A.is_uncommitted	B.is_uncommitted	A.is_consistent	B.is_consistent
*** Comparing query 2 (A) with query 3 (B):
###########################
# Detect missing rows:
###########################
A.pk	B.pk	A.id	B.id	A.int1	B.int1	A.int1_key	B.int1_key	A.int1_unique	B.int1_unique	A.int2	B.int2	A.int2_key	B.int2_key	A.int2_unique	B.int2_unique	A.for_update	B.for_update	A.timestamp	B.timestamp	A.connection_id	B.connection_id	A.thread_id	B.thread_id	A.is_uncommitted	B.is_uncommitted	A.is_consistent	B.is_consistent

###########################
# Detect changed rows:
###########################
A.pk	B.pk	A.id	B.id	A.int1	B.int1	A.int1_key	B.int1_key	A.int1_unique	B.int1_unique	A.int2	B.int2	A.int2_key	B.int2_key	A.int2_unique	B.int2_unique	A.for_update	B.for_update	A.timestamp	B.timestamp	A.connection_id	B.connection_id	A.thread_id	B.thread_id	A.is_uncommitted	B.is_uncommitted	A.is_consistent	B.is_consistent
*** Comparing query 3 (A) with query 4 (B):
###########################
# Detect missing rows:
###########################
A.pk	B.pk	A.id	B.id	A.int1	B.int1	A.int1_key	B.int1_key	A.int1_unique	B.int1_unique	A.int2	B.int2	A.int2_key	B.int2_key	A.int2_unique	B.int2_unique	A.for_update	B.for_update	A.timestamp	B.timestamp	A.connection_id	B.connection_id	A.thread_id	B.thread_id	A.is_uncommitted	B.is_uncommitted	A.is_consistent	B.is_consistent

###########################
# Detect changed rows:
###########################
A.pk	B.pk	A.id	B.id	A.int1	B.int1	A.int1_key	B.int1_key	A.int1_unique	B.int1_unique	A.int2	B.int2	A.int2_key	B.int2_key	A.int2_unique	B.int2_unique	A.for_update	B.for_update	A.timestamp	B.timestamp	A.connection_id	B.connection_id	A.thread_id	B.thread_id	A.is_uncommitted	B.is_uncommitted	A.is_consistent	B.is_consistent
COMMIT;