-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-15289 Binding an out-of-range DATETIME value in binary protocol …
…breaks replication
- Loading branch information
Alexander Barkov
committed
Feb 16, 2018
1 parent
5ab4602
commit 6668da2
Showing
4 changed files
with
141 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
mysql-test/suite/binlog/r/binlog_stm_datetime_ranges_mdev15289.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include/show_binlog_events.inc | ||
Log_name Pos Event_type Server_id End_log_pos Info | ||
master-bin.000001 # Gtid # # GTID #-#-# | ||
master-bin.000001 # Query # # CREATE DATABASE IF NOT EXISTS client_test_db | ||
master-bin.000001 # Gtid # # GTID #-#-# | ||
master-bin.000001 # Query # # use `client_test_db`; create or replace table t1 (t time, d date, dt datetime,ts timestamp) | ||
master-bin.000001 # Gtid # # BEGIN GTID #-#-# | ||
master-bin.000001 # Query # # use `client_test_db`; INSERT INTO t1 VALUES (TIMESTAMP'0000-00-00 00:00:00', TIMESTAMP'0000-00-00 00:00:00', TIMESTAMP'0000-00-00 00:00:00', TIMESTAMP'0000-00-00 00:00:00') | ||
master-bin.000001 # Query # # COMMIT | ||
master-bin.000001 # Gtid # # BEGIN GTID #-#-# | ||
master-bin.000001 # Query # # use `client_test_db`; INSERT INTO t1 VALUES (DATE'0000-00-00', DATE'0000-00-00', DATE'0000-00-00', DATE'0000-00-00') | ||
master-bin.000001 # Query # # COMMIT | ||
master-bin.000001 # Gtid # # BEGIN GTID #-#-# | ||
master-bin.000001 # Query # # use `client_test_db`; INSERT INTO t1 VALUES (TIME'00:00:00', TIME'00:00:00', TIME'00:00:00', TIME'00:00:00') | ||
master-bin.000001 # Query # # COMMIT | ||
master-bin.000001 # Gtid # # GTID #-#-# | ||
master-bin.000001 # Query # # use `client_test_db`; DROP TABLE `t1` /* generated by server */ | ||
master-bin.000001 # Gtid # # GTID #-#-# | ||
master-bin.000001 # Query # # DROP DATABASE IF EXISTS client_test_db |
7 changes: 7 additions & 0 deletions
7
mysql-test/suite/binlog/t/binlog_stm_datetime_ranges_mdev15289.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--source include/not_embedded.inc | ||
--source include/have_binlog_format_statement.inc | ||
|
||
--exec $MYSQL_CLIENT_TEST test_datetime_ranges_mdev15289 > $MYSQLTEST_VARDIR/log/binlog_stm_datetime_ranges_mysql_client_test.out.log 2>&1 | ||
|
||
--let $binlog_file = LAST | ||
source include/show_binlog_events.inc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters