summaryrefslogtreecommitdiff
path: root/plugin/type_uuid/mysql-test/type_uuid/binlog_table_map_optional_metadata_type_uuid.test
blob: aa525123855ffb3ab5ace3804c27c1c60c5b2338 (plain)
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
--source include/have_debug.inc
--source include/have_binlog_format_row.inc

--let $MYSQLD_DATADIR= `select @@datadir`
--let $binlog_file= $MYSQLD_DATADIR/master-bin.000001


--echo #
--echo # Start of 10.5 tests
--echo #

--echo #
--echo # MDEV-4958 Adding datatype UUID
--echo #

--echo # Using DEFAULT_CHARSET format

RESET MASTER;
SET GLOBAL binlog_row_metadata = NO_LOG;
CREATE TABLE t1 (a UUID);
INSERT INTO t1 VALUES('123e4567-e89b-12d3-a456-426655440000');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = MINIMAL;
CREATE TABLE t1 (a UUID);
INSERT INTO t1 VALUES('12334567-8888-9999-aaaa-000000000000');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = FULL;
CREATE TABLE t1 (a UUID);
INSERT INTO t1 VALUES('12334567-8888-9999-aaaa-000000000000');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

--echo # Using COLUMN_CHARSET format

RESET MASTER;
SET GLOBAL binlog_row_metadata = NO_LOG;
CREATE TABLE t1 (a UUID, b CHAR(16) CHARACTER SET latin1, c CHAR(16) CHARACTER SET utf8);
INSERT INTO t1 VALUES('12334567-8888-9999-aaaa-000000000000','','');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = MINIMAL;
CREATE TABLE t1 (a UUID, b CHAR(16) CHARACTER SET latin1, c CHAR(16) CHARACTER SET utf8);
INSERT INTO t1 VALUES('12334567-8888-9999-aaaa-000000000000','','');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

RESET MASTER;
SET GLOBAL binlog_row_metadata = FULL;
CREATE TABLE t1 (a UUID, b CHAR(16) CHARACTER SET latin1, c CHAR(16) CHARACTER SET utf8);
INSERT INTO t1 VALUES('12334567-8888-9999-aaaa-000000000000','','');
--source suite/binlog/include/print_optional_metadata.inc
DROP TABLE t1;
RESET MASTER;

SET GLOBAL binlog_row_metadata = DEFAULT;

--echo #
--echo # End of 10.5 tests
--echo #