summaryrefslogtreecommitdiff
path: root/mysql-test/suite/vcol/r/binlog.result
blob: 83382d47511e9baeb679bd4895b8688161475bd2 (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
include/master-slave.inc
[connection master]
CREATE TABLE t1 (
pk SERIAL,
vcol_date DATE AS (col_date) PERSISTENT,
vcol_int INT AS (col_int) VIRTUAL,
vcol_year YEAR AS (col_year) PERSISTENT,
vcol_blob BLOB AS (col_blob) VIRTUAL,
col_date DATE,
col_int INT NULL,
col_blob BLOB NULL,
col_year YEAR,
PRIMARY KEY(pk)
) ENGINE=InnoDB;
INSERT INTO t1 (col_date,col_int,col_blob,col_year) VALUES ('2010-04-24',5,'foo',1981);
SET SQL_MODE='';
set binlog_row_image="FULL";
CREATE VIEW v1 AS SELECT * FROM t1;
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1982 FROM t1;
Warnings:
Warning	1906	The value specified for generated column 'vcol_date' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_int' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_year' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_blob' in table 't1' has been ignored
select col_date,col_int,col_blob,col_year from v1;
col_date	col_int	col_blob	col_year
2010-04-24	5	foo	1982
connection slave;
select col_date,col_int,col_blob,col_year from v1;
col_date	col_int	col_blob	col_year
2010-04-24	5	foo	1982
connection master;
DROP VIEW v1;
set binlog_row_image="MINIMAL";
CREATE VIEW v1 AS SELECT * FROM t1;
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1983 FROM t1;
Warnings:
Warning	1906	The value specified for generated column 'vcol_date' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_int' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_year' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_blob' in table 't1' has been ignored
select col_date,col_int,col_blob,col_year from v1;
col_date	col_int	col_blob	col_year
2010-04-24	5	foo	1983
connection slave;
select col_date,col_int,col_blob,col_year from v1;
col_date	col_int	col_blob	col_year
2010-04-24	5	foo	1983
connection master;
DROP VIEW v1;
set @@binlog_row_image="NOBLOB";
CREATE VIEW v1 AS SELECT * FROM t1;
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1984 FROM t1;
Warnings:
Warning	1906	The value specified for generated column 'vcol_date' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_int' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_year' in table 't1' has been ignored
Warning	1906	The value specified for generated column 'vcol_blob' in table 't1' has been ignored
select col_date,col_int,col_blob,col_year from v1;
col_date	col_int	col_blob	col_year
2010-04-24	5	foo	1984
connection slave;
select col_date,col_int,col_blob,col_year from v1;
col_date	col_int	col_blob	col_year
2010-04-24	5	foo	1984
connection master;
DROP VIEW v1;
set @@binlog_row_image=default;
DROP TABLE t1;
include/rpl_end.inc