2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
8
SET @save_select_limit=@@session.sql_select_limit;
9
SET @@session.sql_select_limit=10, @@session.pseudo_thread_id=100;
10
ERROR 42000: Access denied; you need the SUPER privilege for this operation
11
SELECT @@session.sql_select_limit = @save_select_limit;
12
@@session.sql_select_limit = @save_select_limit
14
SET @@session.sql_select_limit=10, @@session.sql_log_bin=0;
15
ERROR 42000: Access denied; you need the SUPER privilege for this operation
16
SELECT @@session.sql_select_limit = @save_select_limit;
17
@@session.sql_select_limit = @save_select_limit
19
SET @@session.pseudo_thread_id=100;
20
SET @@session.pseudo_thread_id=connection_id();
21
SET @@session.sql_log_bin=0;
22
SET @@session.sql_log_bin=1;
23
drop table if exists t1,t2;
24
create table t1(f int);
25
create table t2(f int);
26
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
27
create temporary table t3(f int);
28
insert into t3 select * from t1 where f<6;
29
create temporary table t3(f int);
30
insert into t2 select count(*) from t3;
31
insert into t3 select * from t1 where f>=4;
32
drop temporary table t3;
33
insert into t2 select count(*) from t3;
34
drop temporary table t3;
35
select * from t2 ORDER BY f;
41
SET TIMESTAMP=1040323920;
42
create table t1(f int);
43
SET TIMESTAMP=1040323931;
44
create table t2(f int);
45
SET TIMESTAMP=1040323938;
46
insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
47
SET TIMESTAMP=1040323945;
48
SET @@session.pseudo_thread_id=1;
49
create temporary table t3(f int);
50
SET TIMESTAMP=1040323952;
51
SET @@session.pseudo_thread_id=1;
52
insert into t3 select * from t1 where f<6;
53
SET TIMESTAMP=1040324145;
54
SET @@session.pseudo_thread_id=2;
55
create temporary table t3(f int);
56
SET TIMESTAMP=1040324186;
57
SET @@session.pseudo_thread_id=1;
58
insert into t2 select count(*) from t3;
59
SET TIMESTAMP=1040324200;
60
SET @@session.pseudo_thread_id=2;
61
insert into t3 select * from t1 where f>=4;
62
SET TIMESTAMP=1040324211;
63
SET @@session.pseudo_thread_id=1;
64
drop temporary table t3;
65
SET TIMESTAMP=1040324219;
66
SET @@session.pseudo_thread_id=2;
67
insert into t2 select count(*) from t3;
68
SET TIMESTAMP=1040324224;
69
SET @@session.pseudo_thread_id=2;
70
drop temporary table t3;
71
select * from t2 ORDER BY f;
76
create temporary table t3 (f int);
77
create temporary table t4 (f int);
78
create table t5 (f int);
79
select id from information_schema.processlist where command='Binlog Dump' into @id;
81
insert into t5 select * from t4;
82
select * from t5 /* must be 1 after reconnection */;
84
drop temporary table t4;
86
set @@session.pseudo_thread_id=100;
87
create temporary table t101 (id int);
88
create temporary table t102 (id int);
89
set @@session.pseudo_thread_id=200;
90
create temporary table t201 (id int);
91
create temporary table `t``201` (id int);
92
create temporary table `#sql_not_user_table202` (id int);
93
set @@session.pseudo_thread_id=300;
94
create temporary table t301 (id int);
95
create temporary table t302 (id int);
96
create temporary table `#sql_not_user_table303` (id int);
97
create table t1(f int);
98
insert into t1 values (1);
99
select * from t1 /* must be 1 */;