Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/rpl/t/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 840 B image not shown  

Quelle  rpl_temporal_round.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[115] ABAP[102] Lisp[71]} [Methode: maximale Elemente, drei Dimensionen]

--source include/master-slave.inc

SET sql_mode=TIME_ROUND_FRACTIONAL;
SET time_zone='+00:00';
SET timestamp=UNIX_TIMESTAMP('2010-12-31 23:59:59.999999');

CREATE TABLE t1 (id SERIAL, a TIMESTAMP(4));
INSERT INTO t1 (a) VALUES (now(6));
INSERT INTO t1 (a) VALUES ('2011-01-01 23:59:59.999999');

CREATE TABLE t2 (id SERIAL, a DATETIME(4));
INSERT INTO t2 (a) VALUES (now(6));
INSERT INTO t2 (a) VALUES ('2011-01-01 23:59:59.999999');

CREATE TABLE t3 (id SERIAL, a TIME(4));
INSERT INTO t3 (a) VALUES (now(6));
INSERT INTO t3 (a) VALUES ('2011-01-01 23:59:59.999999');

SELECT * FROM t1;
SELECT * FROM t2;
SELECT * FROM t3;

sync_slave_with_master;
connection slave;
SET time_zone='+00:00';
SELECT * FROM t1;
SELECT * FROM t2;
SELECT * FROM t3;

connection master;
DROP TABLE t1;
DROP TABLE t2;
DROP TABLE t3;

--source include/rpl_end.inc

[Dauer der Verarbeitung: 0.13 Sekunden, vorverarbeitet 2026-10-10]