summaryrefslogtreecommitdiff
path: root/mysql-test/r/variables.result
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-04 16:21:19 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-04 16:21:19 +0300
commit121e04732ea3b5edf36335f827cc5bcb08fb7665 (patch)
tree84dac453baa2a878b6dcb1c5ece486502e0d2180 /mysql-test/r/variables.result
parentbd9fa7da26a2d37d8fafd26d453ed62e4d97f85f (diff)
downloadmariadb-git-121e04732ea3b5edf36335f827cc5bcb08fb7665.tar.gz
Bug #52315: utc_date() crashes when system time > year 2037
Some of the server implementations don't support dates later than 2038 due to the internal time type being 32 bit. Added checks so that the server will refuse dates that cannot be handled by either throwing an error when setting date at runtime or by refusing to start or shutting down the server if the system date cannot be stored in my_time_t.
Diffstat (limited to 'mysql-test/r/variables.result')
-rw-r--r--mysql-test/r/variables.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result
index e24117187d2..297445a70cb 100644
--- a/mysql-test/r/variables.result
+++ b/mysql-test/r/variables.result
@@ -910,3 +910,11 @@ set global thread_cache_size =@my_thread_cache_size;
# Test 'myisam_mmap_size' option is not dynamic
SET @@myisam_mmap_size= 500M;
ERROR HY000: Variable 'myisam_mmap_size' is a read only variable
+#
+# Bug #52315: utc_date() crashes when system time > year 2037
+#
+SET TIMESTAMP=2*1024*1024*1024;
+#Should not crash
+SELECT UTC_DATE();
+SET TIMESTAMP=DEFAULT;
+End of 5.0 tests