@@ -19,22 +19,22 @@ Warning 1287 '@@avoid_temporal_upgrade' is deprecated and will be removed in a f
19
19
START SLAVE;
20
20
# ALTER TABLE on the master.
21
21
SELECT f_time, f_datetime, f_timestamp, HEX(WEIGHT_STRING(f_time)),
22
- HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t1 ;
22
+ HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t21 ;
23
23
f_time f_datetime f_timestamp HEX(WEIGHT_STRING(f_time)) HEX(WEIGHT_STRING(f_datetime)) HEX(WEIGHT_STRING(f_timestamp))
24
24
10:10:10 2010-10-10 10:10:10 2031-11-21 17:11:01 818A92 0000124821911312 7468F975
25
25
00:00:00 2000-01-01 01:01:01 2001-01-21 18:11:01 800000 00001230A2EA8AB5 3A6AFC05
26
26
01:01:10 2020-01-01 01:01:01 1980-11-21 18:06:01 80277E 0000125F33D85AB5 147BF1D9
27
27
NULL 2000-01-01 01:01:01 2015-11-21 17:11:01 NULL 00001230A2EA8AB5 56507B75
28
28
00:00:00 NULL 2011-11-21 17:11:01 800000 NULL 4ECA5BF5
29
- ALTER TABLE t1 ADD COLUMN fld1 INT;
29
+ ALTER TABLE t21 ADD COLUMN fld1 INT;
30
30
Warnings:
31
31
Note 1880 TIME/TIMESTAMP/DATETIME columns of old format have been upgraded to the new format.
32
- INSERT INTO t1 VALUES ('22:22:22','2011-11-21 22:22:22','2011-11-21 22:22:22', 0);
32
+ INSERT INTO t21 VALUES ('22:22:22','2011-11-21 22:22:22','2011-11-21 22:22:22', 0);
33
33
# Since the global variable 'avoid_temporal_upgrade' is disabled on
34
34
# the master, the temporal columns of old format are upgraded to the
35
35
# new format.
36
36
SELECT f_time, f_datetime, f_timestamp, HEX(WEIGHT_STRING(f_time)),
37
- HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t1 ;
37
+ HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t21 ;
38
38
f_time f_datetime f_timestamp HEX(WEIGHT_STRING(f_time)) HEX(WEIGHT_STRING(f_datetime)) HEX(WEIGHT_STRING(f_timestamp))
39
39
10:10:10 2010-10-10 10:10:10 2031-11-21 17:11:01 80A28A 998714A28A 7468F975
40
40
00:00:00 2000-01-01 01:01:01 2001-01-21 18:11:01 800000 9964421041 3A6AFC05
@@ -49,7 +49,7 @@ SET @saved_show_old_temporals= @@session.show_old_temporals;
49
49
Warnings:
50
50
Warning 1287 '@@show_old_temporals' is deprecated and will be removed in a future release.
51
51
SELECT f_time, f_datetime, f_timestamp, HEX(WEIGHT_STRING(f_time)),
52
- HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t1 ;
52
+ HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t21 ;
53
53
f_time f_datetime f_timestamp HEX(WEIGHT_STRING(f_time)) HEX(WEIGHT_STRING(f_datetime)) HEX(WEIGHT_STRING(f_timestamp))
54
54
10:10:10 2010-10-10 10:10:10 2031-11-21 17:11:01 818A92 0000124821911312 7468F975
55
55
00:00:00 2000-01-01 01:01:01 2001-01-21 18:11:01 800000 00001230A2EA8AB5 3A6AFC05
@@ -60,15 +60,15 @@ NULL 2000-01-01 01:01:01 2015-11-21 17:11:01 NULL 00001230A2EA8AB5 56507B75
60
60
SET SESSION show_old_temporals= ON;
61
61
Warnings:
62
62
Warning 1287 '@@show_old_temporals' is deprecated and will be removed in a future release.
63
- SHOW CREATE TABLE t1 ;
63
+ SHOW CREATE TABLE t21 ;
64
64
Table Create Table
65
- t1 CREATE TABLE `t1 ` (
65
+ t21 CREATE TABLE `t21 ` (
66
66
`f_time` time /* 5.5 binary format */ DEFAULT NULL,
67
67
`f_timestamp` timestamp /* 5.5 binary format */ NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
68
68
`f_datetime` datetime /* 5.5 binary format */ DEFAULT NULL,
69
69
`fld1` int(11) DEFAULT NULL
70
70
) ENGINE=MyISAM DEFAULT CHARSET=latin1
71
- SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_name='t1 ';
71
+ SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_name='t21 ';
72
72
COLUMN_TYPE
73
73
time /* 5.5 binary format */
74
74
timestamp /* 5.5 binary format */
@@ -78,7 +78,7 @@ SET @@session.show_old_temporals= @saved_show_old_temporals;
78
78
Warnings:
79
79
Warning 1287 '@@show_old_temporals' is deprecated and will be removed in a future release.
80
80
#Cleanup
81
- DROP TABLE t1 ;
81
+ DROP TABLE t21 ;
82
82
include/sync_slave_sql_with_master.inc
83
83
# Testcase to ensure that the temporal columns of old format
84
84
# are upgraded on the slave since 'avoid_temporal_column'
@@ -93,37 +93,37 @@ Warning 1287 '@@avoid_temporal_upgrade' is deprecated and will be removed in a f
93
93
START SLAVE;
94
94
# ALTER TABLE on the master.
95
95
SELECT f_time, f_datetime, f_timestamp, HEX(WEIGHT_STRING(f_time)),
96
- HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t1 ;
96
+ HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t31 ;
97
97
f_time f_datetime f_timestamp HEX(WEIGHT_STRING(f_time)) HEX(WEIGHT_STRING(f_datetime)) HEX(WEIGHT_STRING(f_timestamp))
98
98
10:10:10 2010-10-10 10:10:10 2031-11-21 17:11:01 818A92 0000124821911312 7468F975
99
99
00:00:00 2000-01-01 01:01:01 2001-01-21 18:11:01 800000 00001230A2EA8AB5 3A6AFC05
100
100
01:01:10 2020-01-01 01:01:01 1980-11-21 18:06:01 80277E 0000125F33D85AB5 147BF1D9
101
101
NULL 2000-01-01 01:01:01 2015-11-21 17:11:01 NULL 00001230A2EA8AB5 56507B75
102
102
00:00:00 NULL 2011-11-21 17:11:01 800000 NULL 4ECA5BF5
103
- ALTER TABLE t1 ADD COLUMN fld1 INT;
103
+ ALTER TABLE t31 ADD COLUMN fld1 INT;
104
104
Warnings:
105
105
Note 1880 TIME/TIMESTAMP/DATETIME columns of old format have been upgraded to the new format.
106
- INSERT INTO t1 VALUES ('22:22:22','2011-11-21 22:22:22','2011-11-21 22:22:22', 0);
106
+ INSERT INTO t31 VALUES ('22:22:22','2011-11-21 22:22:22','2011-11-21 22:22:22', 0);
107
107
# Since the default value of 'avoid_temporal_upgrade' is FALSE,
108
108
# the old temporal will be upgraded on the master.
109
109
SELECT f_time, f_datetime, f_timestamp, HEX(WEIGHT_STRING(f_time)),
110
- HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t1 ;
110
+ HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t31 ;
111
111
f_time f_datetime f_timestamp HEX(WEIGHT_STRING(f_time)) HEX(WEIGHT_STRING(f_datetime)) HEX(WEIGHT_STRING(f_timestamp))
112
112
10:10:10 2010-10-10 10:10:10 2031-11-21 17:11:01 80A28A 998714A28A 7468F975
113
113
00:00:00 2000-01-01 01:01:01 2001-01-21 18:11:01 800000 9964421041 3A6AFC05
114
114
01:01:10 2020-01-01 01:01:01 1980-11-21 18:06:01 80104A 99A5421041 147BF1D9
115
115
NULL 2000-01-01 01:01:01 2015-11-21 17:11:01 NULL 9964421041 56507B75
116
116
00:00:00 NULL 2011-11-21 17:11:01 800000 NULL 4ECA5BF5
117
117
22:22:22 2011-11-21 22:22:22 2011-11-21 22:22:22 816596 998AAB6596 4ECAA4EE
118
- SHOW CREATE TABLE t1 ;
118
+ SHOW CREATE TABLE t31 ;
119
119
Table Create Table
120
- t1 CREATE TABLE `t1 ` (
120
+ t31 CREATE TABLE `t31 ` (
121
121
`f_time` time DEFAULT NULL,
122
122
`f_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
123
123
`f_datetime` datetime DEFAULT NULL,
124
124
`fld1` int(11) DEFAULT NULL
125
125
) ENGINE=MyISAM DEFAULT CHARSET=latin1
126
- SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_name='t1 ';
126
+ SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_name='t31 ';
127
127
COLUMN_TYPE
128
128
time
129
129
timestamp
@@ -139,23 +139,23 @@ SET SESSION show_old_temporals= ON;
139
139
Warnings:
140
140
Warning 1287 '@@show_old_temporals' is deprecated and will be removed in a future release.
141
141
SELECT f_time, f_datetime, f_timestamp, HEX(WEIGHT_STRING(f_time)),
142
- HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t1 ;
142
+ HEX(WEIGHT_STRING(f_datetime)), HEX(WEIGHT_STRING(f_timestamp)) FROM t31 ;
143
143
f_time f_datetime f_timestamp HEX(WEIGHT_STRING(f_time)) HEX(WEIGHT_STRING(f_datetime)) HEX(WEIGHT_STRING(f_timestamp))
144
144
10:10:10 2010-10-10 10:10:10 2031-11-21 17:11:01 80A28A 998714A28A 7468F975
145
145
00:00:00 2000-01-01 01:01:01 2001-01-21 18:11:01 800000 9964421041 3A6AFC05
146
146
01:01:10 2020-01-01 01:01:01 1980-11-21 18:06:01 80104A 99A5421041 147BF1D9
147
147
NULL 2000-01-01 01:01:01 2015-11-21 17:11:01 NULL 9964421041 56507B75
148
148
00:00:00 NULL 2011-11-21 17:11:01 800000 NULL 4ECA5BF5
149
149
22:22:22 2011-11-21 22:22:22 2011-11-21 22:22:22 816596 998AAB6596 4ECAA4EE
150
- SHOW CREATE TABLE t1 ;
150
+ SHOW CREATE TABLE t31 ;
151
151
Table Create Table
152
- t1 CREATE TABLE `t1 ` (
152
+ t31 CREATE TABLE `t31 ` (
153
153
`f_time` time DEFAULT NULL,
154
154
`f_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
155
155
`f_datetime` datetime DEFAULT NULL,
156
156
`fld1` int(11) DEFAULT NULL
157
157
) ENGINE=MyISAM DEFAULT CHARSET=latin1
158
- SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_name='t1 ';
158
+ SELECT COLUMN_TYPE FROM information_schema.columns WHERE table_name='t31 ';
159
159
COLUMN_TYPE
160
160
time
161
161
timestamp
@@ -165,6 +165,6 @@ SET @@session.show_old_temporals= @saved_show_old_temporals;
165
165
Warnings:
166
166
Warning 1287 '@@show_old_temporals' is deprecated and will be removed in a future release.
167
167
# cleanup
168
- DROP TABLE t1 ;
168
+ DROP TABLE t31 ;
169
169
include/sync_slave_sql_with_master.inc
170
170
include/rpl_end.inc
0 commit comments