1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-28 17:36:30 +03:00

Merge branch 'bb-10.4-vp-MDEV-27691' into 10.4

This commit is contained in:
Oleksandr Byelkin
2022-10-14 09:04:54 +02:00
301 changed files with 2041 additions and 194 deletions

View File

@@ -1253,14 +1253,23 @@ SELECT * FROM t1 WHERE a >= '2009:09:23 00:00:00';
--echo # The former may give errors for the truncated values, while the latter
--echo # gives warnings. The purpose of this test is not to interfere, and only
--echo # preserve existing behavior.
#view protocol generates additional warning
--disable_view_protocol
SELECT str_to_date('2007-10-00', '%Y-%m-%d') >= '' AND
str_to_date('2007-10-00', '%Y-%m-%d') <= '2007/10/20';
SELECT str_to_date('2007-20-00', '%Y-%m-%d') >= '2007/10/20' AND
str_to_date('2007-20-00', '%Y-%m-%d') <= '';
--enable_view_protocol
#enable after fix MDEV-27871
--disable_view_protocol
SELECT str_to_date('2007-10-00', '%Y-%m-%d') BETWEEN '' AND '2007/10/20';
SELECT str_to_date('2007-20-00', '%Y-%m-%d') BETWEEN '2007/10/20' AND '';
--enable_view_protocol
SELECT str_to_date('', '%Y-%m-%d');