summaryrefslogtreecommitdiff
path: root/mysql-test/main/timezone2.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-17 19:12:21 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-17 19:12:21 +0200
commit35b831d97193d0f8f0bf0ffdaf12218cf091e568 (patch)
tree8be7b37854293d1061d6eedc8ec3cdb0a25cc7d8 /mysql-test/main/timezone2.test
parent950e4f584da2ee937d98ea824e34aa895d737ea3 (diff)
parent336dbe55f3efb01eb2110e56b9e1e75c3b21c106 (diff)
downloadmariadb-git-35b831d97193d0f8f0bf0ffdaf12218cf091e568.tar.gz
Merge branch 'bb-10.11-vp-MDEV-27691' into 10.11
Diffstat (limited to 'mysql-test/main/timezone2.test')
-rw-r--r--mysql-test/main/timezone2.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/main/timezone2.test b/mysql-test/main/timezone2.test
index 1e827de90a8..b5045203903 100644
--- a/mysql-test/main/timezone2.test
+++ b/mysql-test/main/timezone2.test
@@ -12,6 +12,9 @@ drop function if exists f1;
#
create table t1 (ts timestamp);
+#enable after fix MDEV-27871
+--disable_view_protocol
+
set time_zone='+00:00';
select unix_timestamp(utc_timestamp())-unix_timestamp(current_timestamp());
insert into t1 (ts) values ('2003-03-30 02:30:00');
@@ -27,6 +30,8 @@ insert into t1 (ts) values ('2003-03-30 02:30:00');
# Here we will get different results
select * from t1;
+--enable_view_protocol
+
drop table t1;
@@ -187,6 +192,9 @@ insert into t1 (tz) values ('MET'), ('UTC');
select tz, convert_tz('2003-12-31 00:00:00',tz,'UTC'), convert_tz('2003-12-31 00:00:00','UTC',tz) from t1 order by tz;
drop table t1;
+#enable after fix MDEV-27871
+--disable_view_protocol
+
# Parameters to CONVERT_TZ() what should give NULL
select convert_tz('2003-12-31 04:00:00', NULL, 'UTC');
select convert_tz('2003-12-31 04:00:00', 'SomeNotExistingTimeZone', 'UTC');
@@ -194,6 +202,8 @@ select convert_tz('2003-12-31 04:00:00', 'MET', 'SomeNotExistingTimeZone');
select convert_tz('2003-12-31 04:00:00', 'MET', NULL);
select convert_tz( NULL, 'MET', 'UTC');
+--enable_view_protocol
+
#
# Test for bug #4508 "CONVERT_TZ() function with new time zone as param
# crashes server." (Was caused by improperly worked mechanism of time zone
@@ -254,6 +264,7 @@ SET @@global.log_bin_trust_function_creators= @old_log_bin_trust_function_creato
# BUG#19339: CONVERT_TZ(): overly aggressive in locking time_zone_name
# table
#
+--disable_service_connection
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
@@ -272,6 +283,7 @@ UPDATE t1 SET t = CONVERT_TZ(t, 'UTC', 'Europe/Moscow');
UNLOCK TABLES;
DROP TABLE t1;
+--enable_service_connection
--echo #
--echo # Bug #55424: convert_tz crashes when fed invalid data
@@ -302,8 +314,13 @@ SET timestamp=DEFAULT;
--echo #
--echo # MDEV-5506 safe_mutex: Trying to lock unitialized mutex at safemalloc.c on server shutdown after SELECT with CONVERT_TZ
--echo #
+
+#enable after fix MDEV-27871
+--disable_view_protocol
+
SELECT CONVERT_TZ('2001-10-08 00:00:00', MAKE_SET(0,'+01:00'), '+00:00' );
+--enable_view_protocol
--echo #
--echo # End of 5.3 tests