summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/r/rpl_temporal_mysql56_to_mariadb.result
blob: ecc95481f2d767b718ec3dc0314c0b7c88f27757 (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
include/master-slave.inc
[connection master]
#
# Testing replication from MariaDB-10.0 master
# started over MySQL-5.6 data directory
# to MariaDB-10.0 slave running with natively created tables
#
SET TIME_ZONE='+00:00';
SHOW CREATE TABLE mysql050614_temporal0;
Table	Create Table
mysql050614_temporal0	CREATE TABLE `mysql050614_temporal0` (
  `a` time DEFAULT NULL,
  `b` datetime DEFAULT NULL,
  `c` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1
SHOW CREATE TABLE mysql050614_temporal1;
Table	Create Table
mysql050614_temporal1	CREATE TABLE `mysql050614_temporal1` (
  `a` time(1) DEFAULT NULL,
  `b` datetime(1) DEFAULT NULL,
  `c` timestamp(1) NOT NULL DEFAULT CURRENT_TIMESTAMP(1) ON UPDATE CURRENT_TIMESTAMP(1)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
SET TIME_ZONE='+00:00';
CREATE TABLE mysql050614_temporal0 (a time(0), b datetime(0), c timestamp(0)) engine=myisam;
CREATE TABLE mysql050614_temporal1 (a time(1), b datetime(1), c timestamp(1)) engine=myisam;
INSERT INTO mysql050614_temporal0 VALUES ('00:00:02','2001-01-01 00:00:02','2001-01-01 00:00:02');
INSERT INTO mysql050614_temporal1 VALUES ('00:00:02.1','2001-01-01 00:00:02.2','2001-01-01 00:00:02.3');
SELECT * FROM mysql050614_temporal0;
a	b	c
00:00:02	2001-01-01 00:00:02	2001-01-01 00:00:02
SELECT * FROM mysql050614_temporal1;
a	b	c
00:00:02.1	2001-01-01 00:00:02.2	2001-01-01 00:00:02.3
DROP TABLE mysql050614_temporal0;
DROP TABLE mysql050614_temporal1;
include/rpl_end.inc