Debian Codegraph @

mysql-test/suite/rpl/r/rpl_temp_table.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 create table t2 (n int, PRIMARY KEY(n));
7 create temporary table t1 (n int);
8 create temporary table t3 (n int not null);
9 insert into t1 values(1),(2),(3),(100),(25),(26),(200),(300);
10 insert into t2 select * from t1;
11 alter table t3 add primary key(n);
12 flush logs;
13 insert into t3 values (1010);
14 insert into t2 select * from t3;
15 drop table if exists t3;
16 insert into t2 values (1012);
17 create temporary table t1 (n int);
18 insert into t1 values (4),(5);
19 insert into t2 select * from t1;
20 insert into t2 values(61);
21 select * from t2;
22 n
23 1
24 2
25 3
26 4
27 5
28 25
29 26
30 61
31 100
32 200
33 300
34 1010
35 1012
36 select count(*) from t2;
37 count(*)
38 13
39 select sum(n) from t2;
40 sum(n)
41 2749
42 show status like 'Replica_open_temp_tables';
43 Variable_name Value
44 Replica_open_temp_tables 0
45 drop table if exists t1,t2;
46 Warnings:
47 Note 1051 Unknown table 'test.t1'
48 include/sync_slave_sql_with_master.inc
49 include/rpl_end.inc