Commit 4f412a57 authored by Alexander Barkov's avatar Alexander Barkov

A post-fix for MDEV-4871: Fixing a failire in "mtr --ps"

parent 954d21de
...@@ -155,9 +155,11 @@ EXPLAIN EXTENDED SELECT TIMESTAMP'2010-01-01 10:10:10'; ...@@ -155,9 +155,11 @@ EXPLAIN EXTENDED SELECT TIMESTAMP'2010-01-01 10:10:10';
SELECT TIMESTAMP'2001-00-00 00:00:00.999999'; SELECT TIMESTAMP'2001-00-00 00:00:00.999999';
SELECT TIMESTAMP'2001-00-01 00:00:00.999999'; SELECT TIMESTAMP'2001-00-01 00:00:00.999999';
SELECT TIMESTAMP'2001-01-00 00:00:00.999999'; SELECT TIMESTAMP'2001-01-00 00:00:00.999999';
--disable_ps_protocol
SELECT TIMESTAMP'2001-00-00 00:00:00.9999999'; SELECT TIMESTAMP'2001-00-00 00:00:00.9999999';
SELECT TIMESTAMP'2001-00-01 00:00:00.9999999'; SELECT TIMESTAMP'2001-00-01 00:00:00.9999999';
SELECT TIMESTAMP'2001-01-00 00:00:00.9999999'; SELECT TIMESTAMP'2001-01-00 00:00:00.9999999';
--enable_ps_protocol
--echo # --echo #
--echo # String literal with bad dates and nanoseconds to DATETIME(N) --echo # String literal with bad dates and nanoseconds to DATETIME(N)
...@@ -216,7 +218,9 @@ SELECT 'a' LIKE 'a' ESCAPE TIME'00:00:00'; ...@@ -216,7 +218,9 @@ SELECT 'a' LIKE 'a' ESCAPE TIME'00:00:00';
--echo # --echo #
--echo # MDEV-4871 Temporal literals do not accept nanoseconds --echo # MDEV-4871 Temporal literals do not accept nanoseconds
--echo # --echo #
--disable_ps_protocol
SELECT TIME'10:10:10.1234567'; SELECT TIME'10:10:10.1234567';
--enable_ps_protocol
SELECT TIME('10:10:10.1234567'); SELECT TIME('10:10:10.1234567');
--error ER_WRONG_VALUE --error ER_WRONG_VALUE
SELECT TIME'10:10:10.123456xyz'; SELECT TIME'10:10:10.123456xyz';
...@@ -225,7 +229,9 @@ SELECT TIME'10:10:10.1234567xyz'; ...@@ -225,7 +229,9 @@ SELECT TIME'10:10:10.1234567xyz';
SELECT TIME('10:10:10.123456xyz'); SELECT TIME('10:10:10.123456xyz');
SELECT TIME('10:10:10.1234567xyz'); SELECT TIME('10:10:10.1234567xyz');
--disable_ps_protocol
SELECT TIMESTAMP'2001-01-01 10:10:10.1234567'; SELECT TIMESTAMP'2001-01-01 10:10:10.1234567';
--enable_ps_protocol
SELECT TIMESTAMP('2001-01-01 10:10:10.1234567'); SELECT TIMESTAMP('2001-01-01 10:10:10.1234567');
--error ER_WRONG_VALUE --error ER_WRONG_VALUE
SELECT TIMESTAMP'2001-01-01 10:10:10.123456xyz'; SELECT TIMESTAMP'2001-01-01 10:10:10.123456xyz';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment