Debian Codegraph @

mysql-test/suite/rpl_nogtid/r/rpl_nogtid_mix_row_default_as_expr.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 tables on master
7 CREATE TABLE v1 (i VARCHAR(36) DEFAULT (RAND()), j VARCHAR(36) DEFAULT (PI()));
8 INSERT INTO v1(i, j) VALUES ("a","b");
9 INSERT INTO v1 VALUES ("a","b");
10 INSERT INTO v1(i) VALUES ("a");
11 INSERT INTO v1(i,j) VALUES ("a",DEFAULT);
12 INSERT INTO v1(j) VALUES ("b");
13 INSERT INTO v1(i,j) VALUES (DEFAULT,"b");
14 INSERT INTO v1() VALUES();
15 DROP TABLE v1;
16 CREATE TABLE t1(
17 id INTEGER NOT NULL AUTO_INCREMENT,
18 token VARCHAR(255) DEFAULT (UUID()),
19 PRIMARY KEY (id),
20 KEY token (token)
21 );
22 INSERT INTO t1 VALUES (3, "abc"), (DEFAULT, DEFAULT);
23 INSERT INTO t1 VALUES (1, "abc"), (2, "def");
24 DROP TABLE t1;
25 CREATE TABLE t2 (i VARCHAR(36) DEFAULT (UUID()));
26 INSERT INTO t2(i) VALUES('MySQL');
27 INSERT INTO t2(i) VALUES(DEFAULT);
28 INSERT INTO t2() VALUES();
29 SELECT COUNT(*) from t2;
30 COUNT(*)
31 3
32 SET @start_enforce_gtid_consistency = @@GLOBAL.ENFORCE_GTID_CONSISTENCY;
33 SET GLOBAL ENFORCE_GTID_CONSISTENCY = WARN;
34 ALTER TABLE t2 ADD COLUMN c char(36) DEFAULT (PI());
35 SET GLOBAL ENFORCE_GTID_CONSISTENCY = @start_enforce_gtid_consistency;
36 include/sync_slave_sql_with_master.inc
37 [ slave connection ]
38 SHOW TABLES;
39 Tables_in_test
40 t2
41 SHOW CREATE TABLE t2 ;
42 Table Create Table
43 t2 CREATE TABLE `t2` (
44 `i` varchar(36) DEFAULT (uuid()),
45 `c` char(36) DEFAULT (pi())
46 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
47 SELECT COUNT(*) from t2;
48 COUNT(*)
49 3
50 # clean up
51 [connection master]
52 DROP TABLE t2;
53 include/rpl_end.inc