~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/sql_low_priority_updates_func.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
** Setup **
 
2
 
 
3
** Connecting con0 using root **
 
4
** Connecting con1 using root **
 
5
** Connection default **
 
6
SET @global_low_priority_updates = @@GLOBAL.low_priority_updates;
 
7
SET @session_low_priority_updates = @@SESSION.low_priority_updates;
 
8
CREATE TABLE t1 (a varchar(100));
 
9
'#--------------------FN_DYNVARS_160_01-------------------------#'
 
10
** Connection con0 **
 
11
SET SESSION low_priority_updates = ON;
 
12
** Connection con1 **
 
13
SET SESSION low_priority_updates = ON;
 
14
** Connection default **
 
15
SET SESSION low_priority_updates = ON;
 
16
INSERT INTO t1 VALUES('1');
 
17
INSERT INTO t1 VALUES('2');
 
18
INSERT INTO t1 VALUES('3');
 
19
INSERT INTO t1 VALUES('4');
 
20
INSERT INTO t1 VALUES('5');
 
21
INSERT INTO t1 VALUES('6');
 
22
LOCK TABLE t1 WRITE;
 
23
** Connection con1 **
 
24
** Asynchronous Execution **
 
25
UPDATE t1 SET a = CONCAT(a,"-updated");|
 
26
** Connection con0 **
 
27
** Asynchronous Execution **
 
28
LOCK TABLE t1 READ;
 
29
SELECT * FROM t1;
 
30
UNLOCK TABLES;|
 
31
** Connection default **
 
32
Sleeping for 1 secs
 
33
UNLOCK TABLES;
 
34
** Connection con0 **
 
35
** Asynchronous Result **
 
36
a
 
37
1
 
38
2
 
39
3
 
40
4
 
41
5
 
42
6
 
43
Expected values of a without -updated;
 
44
** Connection default **
 
45
DELETE FROM t1;
 
46
'#--------------------FN_DYNVARS_160_02-------------------------#'
 
47
** Connection con0 **
 
48
SET SESSION low_priority_updates = OFF;
 
49
** Connection con1 **
 
50
SET SESSION low_priority_updates = OFF;
 
51
** Connection default**
 
52
SET SESSION low_priority_updates = OFF;
 
53
INSERT INTO t1 VALUES('1');
 
54
INSERT INTO t1 VALUES('2');
 
55
INSERT INTO t1 VALUES('3');
 
56
INSERT INTO t1 VALUES('4');
 
57
INSERT INTO t1 VALUES('5');
 
58
INSERT INTO t1 VALUES('6');
 
59
LOCK TABLE t1 WRITE;
 
60
** Connection con1 **
 
61
** Asynchronous Execution **
 
62
UPDATE t1 SET a = CONCAT(a,"-updated");|
 
63
** Connection con0 **
 
64
** Asynchronous Execution **
 
65
LOCK TABLE t1 READ;
 
66
SELECT * FROM t1;
 
67
UNLOCK TABLES;|
 
68
** Connection default **
 
69
Sleeping for 1 secs
 
70
UNLOCK TABLES;
 
71
** Connection con0 **
 
72
** Asynchronous Result **
 
73
a
 
74
1-updated
 
75
2-updated
 
76
3-updated
 
77
4-updated
 
78
5-updated
 
79
6-updated
 
80
Expected values of a with -updated;
 
81
** Connection default**
 
82
DELETE FROM t1;
 
83
'#--------------------FN_DYNVARS_160_03-------------------------#'
 
84
** Connecting con_int1 using root **
 
85
** Connection con_int1 **
 
86
SELECT @@SESSION.low_priority_updates;
 
87
@@SESSION.low_priority_updates
 
88
0
 
89
1 / TRUE Expected
 
90
SET SESSION low_priority_updates = FALSE;
 
91
** Connecting con_int2 using root **
 
92
** Connection con_int2 **
 
93
SELECT @@SESSION.low_priority_updates;
 
94
@@SESSION.low_priority_updates
 
95
0
 
96
1 / TRUE Expected
 
97
SET SESSION low_priority_updates = TRUE;
 
98
** Connection con_int1 **
 
99
SELECT @@SESSION.low_priority_updates;
 
100
@@SESSION.low_priority_updates
 
101
0
 
102
0 / FALSE Expected
 
103
** Connection con_int2 **
 
104
SELECT @@SESSION.low_priority_updates;
 
105
@@SESSION.low_priority_updates
 
106
1
 
107
1 / TRUE Expected
 
108
** Connection default  **
 
109
Disconnecting Connections con_int1, con_int2
 
110
** Connection default **
 
111
Disconnecting Connections con0, con1
 
112
DROP TABLE t1;
 
113
SET @@GLOBAL.low_priority_updates = @global_low_priority_updates;
 
114
SET @@SESSION.low_priority_updates = @session_low_priority_updates;